Skip to content

Commit a7b7766

Browse files
committed
[FrameworkBundle] Add case in Kernel directory guess for PHPUnit
1 parent 6cd79e9 commit a7b7766

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,14 @@ private static function getPhpUnitCliConfigArgument()
7979
if (preg_match('/^-[^ \-]*c$/', $testArg) || $testArg === '--configuration') {
8080
$dir = realpath($reversedArgs[$argIndex - 1]);
8181
break;
82-
} elseif (strpos($testArg, '--configuration=') === 0) {
82+
} elseif (0 === strpos($testArg, '--configuration=')) {
8383
$argPath = substr($testArg, strlen('--configuration='));
8484
$dir = realpath($argPath);
8585
break;
86+
} elseif (0 === strpos($testArg, '-c')) {
87+
$argPath = substr($testArg, strlen('-c'));
88+
$dir = realpath($argPath);
89+
break;
8690
}
8791
}
8892

0 commit comments

Comments
 (0)