refactoring test structure.
This commit is contained in:
@@ -13,6 +13,11 @@ class RouteFilerTest extends PHPUnit_Framework_TestCase {
|
||||
System\Route\Filter::$filters = $filters;
|
||||
}
|
||||
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
System\Route\Filter::$filters = require APP_PATH.'filters'.EXT;
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Exception
|
||||
*/
|
||||
@@ -37,9 +42,4 @@ class RouteFilerTest extends PHPUnit_Framework_TestCase {
|
||||
$this->assertEquals(System\Route\Filter::call('vars2', array('test1', 'test2'), true), 'test1test2');
|
||||
}
|
||||
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
System\Route\Filter::$filters = require APP_PATH.'filters'.EXT;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user