31 ->defineOriginalRootPath()
32 ->createNecessaryDirectoriesInDocumentRoot();
41 @ini_set(
'display_errors', 1);
53 $testsDirectory = __DIR__ .
'/../Tests/';
54 if (!class_exists(
'PHPUnit_Framework_TestCase')) {
55 die(
'PHPUnit wasn\'t found. Please check your settings and command.');
57 require_once($testsDirectory .
'BaseTestCase.php');
58 require_once($testsDirectory .
'FunctionalTestCase.php');
59 require_once($testsDirectory .
'FunctionalTestCaseBootstrapUtility.php');
60 require_once($testsDirectory .
'Exception.php');
72 protected function defineOriginalRootPath() {
73 if (!defined(
'ORIGINAL_ROOT')) {
103 if (is_dir($directory)) {
107 if (!mkdir($directory, 0777, TRUE)) {
108 throw new \RuntimeException(
'Directory "' . $directory .
'" could not be created', 1404038665);
118 if (getenv(
'TYPO3_PATH_WEB')) {
119 $webRoot = getenv(
'TYPO3_PATH_WEB') .
'/';
121 $webRoot = getcwd() .
'/';
124 return strtr($webRoot,
'\\',
'/');
128 if (PHP_SAPI !==
'cli') {
129 die(
'This script supports command line usage only. Please check your command.');
if(PHP_SAPI !=='cli') $bootstrap
createNecessaryDirectoriesInDocumentRoot()
createDirectory($directory)