public function RouteTest::testCondition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Tests/RouteTest.php \Symfony\Component\Routing\Tests\RouteTest::testCondition()
File
- vendor/
symfony/ routing/ Tests/ RouteTest.php, line 210
Class
Namespace
Symfony\Component\Routing\TestsCode
public function testCondition() {
$route = new Route('/');
$this
->assertSame('', $route
->getCondition());
$route
->setCondition('context.getMethod() == "GET"');
$this
->assertSame('context.getMethod() == "GET"', $route
->getCondition());
}