mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
* Fix `\yiiunit\framework\helpers\ConsoleTest::testErrorSummary` * Fix `\yiiunit\framework\console\controllers\PHPMessageControllerTest::testRemoveUnusedBehavior`
This commit is contained in:
committed by
Alexander Makarov
parent
27463c1fcf
commit
c5397f8784
@ -903,6 +903,7 @@ EOD;
|
||||
$categoryFileName = str_replace($dirName, '', $messageFile);
|
||||
$categoryFileName = ltrim($categoryFileName, DIRECTORY_SEPARATOR);
|
||||
$category = preg_replace('#\.php$#', '', $categoryFileName);
|
||||
$category = str_replace(DIRECTORY_SEPARATOR, '/', $category);
|
||||
|
||||
if (!in_array($category, $existingCategories, true)) {
|
||||
unlink($messageFile);
|
||||
|
||||
Reference in New Issue
Block a user