Skip to content

Commit 9a670a5

Browse files
committed
Merge branch '2.8' into 3.0
* 2.8: [WebProfilerBundle] Remove loading status from AJAX toolbar after error Add missing apostrophe in setSaveHandler phpdoc [VarDumper] Fix typo [FrameworkBundle] Add case in Kernel directory guess for PHPUnit [FrameworkBundle] Add case in Kernel directory guess for PHPUnit
2 parents 1df5638 + 28873f5 commit 9a670a5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Test/KernelTestCase.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,14 @@ private static function getPhpUnitCliConfigArgument()
8080
if (preg_match('/^-[^ \-]*c$/', $testArg) || $testArg === '--configuration') {
8181
$dir = realpath($reversedArgs[$argIndex - 1]);
8282
break;
83-
} elseif (strpos($testArg, '--configuration=') === 0) {
83+
} elseif (0 === strpos($testArg, '--configuration=')) {
8484
$argPath = substr($testArg, strlen('--configuration='));
8585
$dir = realpath($argPath);
8686
break;
87+
} elseif (0 === strpos($testArg, '-c')) {
88+
$argPath = substr($testArg, strlen('-c'));
89+
$dir = realpath($argPath);
90+
break;
8791
}
8892
}
8993

0 commit comments

Comments
 (0)