[FrameworkBundle] Add case in Kernel directory guess for PHPUnit
This commit is contained in:
parent
e9b8aae787
commit
758fc1dfb2
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue