[FrameworkBundle] removed function for checking for phpunit.xml in cwd
This commit is contained in:
parent
0b65923c37
commit
11fb84538a
@ -61,7 +61,9 @@ abstract class WebTestCase extends BaseWebTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
$dir = $this->getPhpUnitCliConfigArgument();
|
$dir = $this->getPhpUnitCliConfigArgument();
|
||||||
if ($dir === null && $this->doesPhpUnitConfigFileExistInCwd()) {
|
if ($dir === null &&
|
||||||
|
(file_exists(getcwd() . DIRECTORY_SEPARATOR . 'phpunit.xml') ||
|
||||||
|
file_exists(getcwd() . DIRECTORY_SEPARATOR . 'phpunit.xml.dist'))) {
|
||||||
$dir = getcwd();
|
$dir = getcwd();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,17 +105,6 @@ abstract class WebTestCase extends BaseWebTestCase
|
|||||||
return $dir;
|
return $dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Finds whether a phpunit configuration file exists in current directory
|
|
||||||
*
|
|
||||||
* @return Boolean true if a phpunit configuration file exists in current directory, false if not
|
|
||||||
*/
|
|
||||||
private function doesPhpUnitConfigFileExistInCwd()
|
|
||||||
{
|
|
||||||
return (file_exists(getcwd() . DIRECTORY_SEPARATOR . 'phpunit.xml') ||
|
|
||||||
file_exists(getcwd() . DIRECTORY_SEPARATOR . 'phpunit.xml.dist'));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempts to guess the kernel location.
|
* Attempts to guess the kernel location.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user