[Routing] fix misleading test for condition
This commit is contained in:
parent
d7e9448353
commit
d687a885a4
@ -204,9 +204,9 @@ class RouteTest extends \PHPUnit_Framework_TestCase
|
||||
public function testCondition()
|
||||
{
|
||||
$route = new Route('/');
|
||||
$this->assertEquals(null, $route->getCondition());
|
||||
$this->assertSame('', $route->getCondition());
|
||||
$route->setCondition('context.getMethod() == "GET"');
|
||||
$this->assertEquals('context.getMethod() == "GET"', $route->getCondition());
|
||||
$this->assertSame('context.getMethod() == "GET"', $route->getCondition());
|
||||
}
|
||||
|
||||
public function testCompile()
|
||||
|
Reference in New Issue
Block a user