[FrameworkBundle] Add case in Kernel directory guess for PHPUnit

This commit is contained in:
Titouan Galopin 2016-01-06 10:52:17 +01:00
parent e9b8aae787
commit 758fc1dfb2
1 changed files with 5 additions and 1 deletions

View File

@ -103,10 +103,14 @@ abstract class WebTestCase extends \PHPUnit_Framework_TestCase
if (preg_match('/^-[^ \-]*c$/', $testArg) || $testArg === '--configuration') {
$dir = realpath($reversedArgs[$argIndex - 1]);
break;
} elseif (strpos($testArg, '--configuration=') === 0) {
} elseif (0 === strpos($testArg, '--configuration=')) {
$argPath = substr($testArg, strlen('--configuration='));
$dir = realpath($argPath);
break;
} elseif (0 === strpos($testArg, '-c')) {
$argPath = substr($testArg, strlen('-c'));
$dir = realpath($argPath);
break;
}
}