added foundation of testing setup.
This commit is contained in:
22
phpunit.php
Normal file
22
phpunit.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// Overrride the application path if testing Laravel.
|
||||
// --------------------------------------------------------------
|
||||
foreach ($_SERVER['argv'] as $key => $argument)
|
||||
{
|
||||
if ($argument == 'laravel' and $_SERVER['argv'][$key - 1] == '--group')
|
||||
{
|
||||
define('APP_PATH', realpath('tests/laravel').DIRECTORY_SEPARATOR);
|
||||
}
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// Set the core Laravel path constants.
|
||||
// --------------------------------------------------------------
|
||||
require 'paths.php';
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// Bootstrap the Laravel core.
|
||||
// --------------------------------------------------------------
|
||||
require SYS_PATH.'core.php';
|
||||
Reference in New Issue
Block a user