added foundation of testing setup.

This commit is contained in:
Taylor Otwell
2012-01-17 16:04:28 -06:00
parent db24d77e1e
commit 6f2e83f284
26 changed files with 1440 additions and 0 deletions

22
phpunit.php Normal file
View 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';