We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cd79e9 commit a7b7766Copy full SHA for a7b7766
src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php
@@ -79,10 +79,14 @@ private static function getPhpUnitCliConfigArgument()
79
if (preg_match('/^-[^ \-]*c$/', $testArg) || $testArg === '--configuration') {
80
$dir = realpath($reversedArgs[$argIndex - 1]);
81
break;
82
- } elseif (strpos($testArg, '--configuration=') === 0) {
+ } elseif (0 === strpos($testArg, '--configuration=')) {
83
$argPath = substr($testArg, strlen('--configuration='));
84
$dir = realpath($argPath);
85
86
+ } elseif (0 === strpos($testArg, '-c')) {
87
+ $argPath = substr($testArg, strlen('-c'));
88
+ $dir = realpath($argPath);
89
+ break;
90
}
91
92
0 commit comments