Files
spa-api/phpunit.php

41 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
* @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);
// --------------------------------------------------------------
// Override the framework paths if testing Laravel.
2012-01-17 16:04:28 -06:00
// --------------------------------------------------------------
2012-01-27 12:09:19 -06:00
if (in_array('build.xml', $_SERVER['argv']))
2012-01-17 16:04:28 -06:00
{
2012-01-27 12:09:19 -06:00
define('APP_PATH', realpath('bundles/laravel-tests/application').DS);
2012-01-27 12:09:19 -06:00
define('BUNDLE_PATH', realpath('bundles/laravel-tests/bundles').DS);
2012-01-27 12:09:19 -06:00
define('STORAGE_PATH', realpath('bundles/laravel-tests/storage').DS);
2012-01-17 16:04:28 -06:00
}
// --------------------------------------------------------------
// Set the core Laravel path constants.
// --------------------------------------------------------------
require 'paths.php';
// --------------------------------------------------------------
// Bootstrap the Laravel core.
// --------------------------------------------------------------
2012-01-18 14:03:12 -06:00
require SYS_PATH.'core.php';
// --------------------------------------------------------------
// Start the default bundle.
// --------------------------------------------------------------
Bundle::start(DEFAULT_BUNDLE);