[FrameworkBundle] removed function for checking for phpunit.xml in cwd

This commit is contained in:
Daniel Holmes 2011-03-29 21:54:32 +11:00
parent 0b65923c37
commit 11fb84538a

View File

@ -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.
* *