[FrameworkBundle] Add case in Kernel directory guess for PHPUnit
This commit is contained in:
parent
6cd79e92f6
commit
a7b7766983
@ -79,10 +79,14 @@ abstract class KernelTestCase extends \PHPUnit_Framework_TestCase
|
|||||||
if (preg_match('/^-[^ \-]*c$/', $testArg) || $testArg === '--configuration') {
|
if (preg_match('/^-[^ \-]*c$/', $testArg) || $testArg === '--configuration') {
|
||||||
$dir = realpath($reversedArgs[$argIndex - 1]);
|
$dir = realpath($reversedArgs[$argIndex - 1]);
|
||||||
break;
|
break;
|
||||||
} elseif (strpos($testArg, '--configuration=') === 0) {
|
} elseif (0 === strpos($testArg, '--configuration=')) {
|
||||||
$argPath = substr($testArg, strlen('--configuration='));
|
$argPath = substr($testArg, strlen('--configuration='));
|
||||||
$dir = realpath($argPath);
|
$dir = realpath($argPath);
|
||||||
break;
|
break;
|
||||||
|
} elseif (0 === strpos($testArg, '-c')) {
|
||||||
|
$argPath = substr($testArg, strlen('-c'));
|
||||||
|
$dir = realpath($argPath);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user