converted path constants to $GLOBALS.
This commit is contained in:
17
phpunit.php
17
phpunit.php
@@ -13,21 +13,6 @@
|
||||
// --------------------------------------------------------------
|
||||
define('DS', DIRECTORY_SEPARATOR);
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// Override the framework paths if testing Laravel.
|
||||
// --------------------------------------------------------------
|
||||
foreach ($_SERVER['argv'] as $argument)
|
||||
{
|
||||
if (strpos($argument, 'build.xml') !== false)
|
||||
{
|
||||
define('APP_PATH', realpath('bundles/laravel-tests/application').DS);
|
||||
|
||||
define('BUNDLE_PATH', realpath('bundles/laravel-tests/bundles').DS);
|
||||
|
||||
define('STORAGE_PATH', realpath('bundles/laravel-tests/storage').DS);
|
||||
}
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// Set the core Laravel path constants.
|
||||
// --------------------------------------------------------------
|
||||
@@ -36,7 +21,7 @@ require 'paths.php';
|
||||
// --------------------------------------------------------------
|
||||
// Bootstrap the Laravel core.
|
||||
// --------------------------------------------------------------
|
||||
require SYS_PATH.'core.php';
|
||||
require $GLOBALS['SYS_PATH'].'core.php';
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// Start the default bundle.
|
||||
|
||||
Reference in New Issue
Block a user