cleaned up paths.

This commit is contained in:
Taylor Otwell
2012-01-28 14:55:08 -06:00
parent 409e908964
commit 97fcea1e51
29 changed files with 86 additions and 81 deletions

View File

@@ -3,7 +3,7 @@
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @version 2.2.0 (Beta 1)
* @version 3.0.0
* @author Taylor Otwell <taylorotwell@gmail.com>
* @link http://laravel.com
*/
@@ -25,19 +25,19 @@ $config = file_get_contents('phpunit.xml');
if (strpos($config, 'laravel-tests') !== false)
{
$path = $GLOBALS['BUNDLE_PATH'].'laravel-tests'.DS;
$path = path('bundle').'laravel-tests'.DS;
$GLOBALS['APP_PATH'] = $path.'application'.DS;
set_path('app', $path.'application'.DS);
$GLOBALS['BUNDLE_PATH'] = $path.'bundles'.DS;
set_path('bundle', $path.'bundles'.DS);
$GLOBALS['STORAGE_PATH'] = $path.'storage'.DS;
set_path('storage', $path.'storage'.DS);
}
// --------------------------------------------------------------
// Bootstrap the Laravel core.
// --------------------------------------------------------------
require $GLOBALS['SYS_PATH'].'core.php';
require path('sys').'core.php';
// --------------------------------------------------------------
// Start the default bundle.