Files
nl-mall-api/phpunit.php

45 lines
1.4 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
2012-01-28 14:55:08 -06:00
* @version 3.0.0
2012-01-17 16:10:16 -06:00
* @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)
{
2012-01-28 14:55:08 -06:00
$path = path('bundle').'laravel-tests'.DS;
2012-01-27 16:28:17 -06:00
2012-01-28 14:55:08 -06:00
set_path('app', $path.'application'.DS);
2012-01-27 16:28:17 -06:00
2012-01-28 14:55:08 -06:00
set_path('bundle', $path.'bundles'.DS);
2012-01-27 16:28:17 -06:00
2012-01-28 14:55:08 -06:00
set_path('storage', $path.'storage'.DS);
2012-01-27 16:28:17 -06:00
}
2012-01-17 16:04:28 -06:00
// --------------------------------------------------------------
// Bootstrap the Laravel core.
// --------------------------------------------------------------
2012-01-28 14:55:08 -06:00
require path('sys').'core.php';
2012-01-18 14:03:12 -06:00
// --------------------------------------------------------------
// Start the default bundle.
// --------------------------------------------------------------
Bundle::start(DEFAULT_BUNDLE);