assertEmpty( reset($matches), 'module.xml changes for patch releases in non-actual branches are not allowed:' . PHP_EOL . implode(PHP_EOL, array_values(reset($matches))) ); } } /** * Test changes for files in Module Setup dir */ public function testModuleSetupFiles() { if (!self::$actualBranch) { preg_match_all('|app/code/Magento/[^/]+/Setup/[^/]+$|mi', self::$changedFileList, $matches); $this->assertEmpty( reset($matches), 'Code with changes for DB schema or data in non-actual branches are not allowed:' . PHP_EOL . implode(PHP_EOL, array_values(reset($matches))) ); } } }