[FrameworkBundle] fixed phpunit when ran from the app directory directly without -c
This commit is contained in:
parent
3127312139
commit
23d7967f81
@ -74,6 +74,8 @@ abstract class WebTestCase extends BaseWebTestCase
|
||||
$dir = $dir.'/'.$matches[1];
|
||||
} elseif (preg_match('/\-c +([^ ]+)/', $cli, $matches)) {
|
||||
$dir = $dir.'/'.$matches[1];
|
||||
} elseif (file_exists(getcwd().'/phpunit.xml') || file_exists(getcwd().'/phpunit.xml.dist')) {
|
||||
$dir = getcwd();
|
||||
} else {
|
||||
throw new \RuntimeException('Unable to guess the Kernel directory.');
|
||||
}
|
||||
|
Reference in New Issue
Block a user