[Routing] fix misleading test for condition

This commit is contained in:
Tobias Schultze 2015-01-13 15:58:43 +01:00
parent d7e9448353
commit d687a885a4

View File

@ -204,9 +204,9 @@ class RouteTest extends \PHPUnit_Framework_TestCase
public function testCondition() public function testCondition()
{ {
$route = new Route('/'); $route = new Route('/');
$this->assertEquals(null, $route->getCondition()); $this->assertSame('', $route->getCondition());
$route->setCondition('context.getMethod() == "GET"'); $route->setCondition('context.getMethod() == "GET"');
$this->assertEquals('context.getMethod() == "GET"', $route->getCondition()); $this->assertSame('context.getMethod() == "GET"', $route->getCondition());
} }
public function testCompile() public function testCompile()