Files
nl-admin-api/phpunit.php

45 lines
1.5 KiB
PHP
Raw Normal View History

2012-01-17 16:04:28 -06:00
<?php
2012-01-17 16:10:16 -06:00
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @version 2.2.0 (Beta 1)
* @author Taylor Otwell <taylorotwell@gmail.com>
* @link http://laravel.com
*/
2012-01-17 16:04:28 -06:00
// --------------------------------------------------------------
// Define the directory separator for the environment.
// --------------------------------------------------------------
define('DS', DIRECTORY_SEPARATOR);
2012-01-17 16:04:28 -06:00
// --------------------------------------------------------------
// Set the core Laravel path constants.
// --------------------------------------------------------------
require 'paths.php';
2012-01-27 16:28:17 -06:00
// --------------------------------------------------------------
// Override the application paths when testing the core.
// --------------------------------------------------------------
$config = file_get_contents('phpunit.xml');
if (strpos($config, 'laravel-tests') !== false)
{
$path = $GLOBALS['BUNDLE_PATH'].'laravel-tests'.DS;
$GLOBALS['APP_PATH'] = $path.'application'.DS;
$GLOBALS['BUNDLE_PATH'] = $path.'bundles'.DS;
$GLOBALS['STORAGE_PATH'] = $path.'storage'.DS;
}
2012-01-17 16:04:28 -06:00
// --------------------------------------------------------------
// Bootstrap the Laravel core.
// --------------------------------------------------------------
2012-01-27 16:17:43 -06:00
require $GLOBALS['SYS_PATH'].'core.php';
2012-01-18 14:03:12 -06:00
// --------------------------------------------------------------
// Start the default bundle.
// --------------------------------------------------------------
Bundle::start(DEFAULT_BUNDLE);