refactoring test structure.

This commit is contained in:
Taylor Otwell
2011-07-13 23:14:51 -05:00
parent d3398db56f
commit 537139a2ca
10 changed files with 197 additions and 150 deletions

View File

@@ -39,6 +39,7 @@ class RouteTest extends PHPUnit_Framework_TestCase {
{
$route = new System\Route('GET /', array('after' => 'test', 'do' => function() {return 'route';}));
System\Route\Filter::$filters = array('test' => function() {define('LARAVEL_TEST_AFTER_FILTER', 'ran');});
$route->call();
$this->assertTrue(defined('LARAVEL_TEST_AFTER_FILTER'));