public function UrlMatcherTest::testCondition in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/routing/Tests/Matcher/UrlMatcherTest.php \Symfony\Component\Routing\Tests\Matcher\UrlMatcherTest::testCondition()
@expectedException \Symfony\Component\Routing\Exception\ResourceNotFoundException
File
- vendor/
symfony/ routing/ Tests/ Matcher/ UrlMatcherTest.php, line 329
Class
Namespace
Symfony\Component\Routing\Tests\MatcherCode
public function testCondition() {
$coll = new RouteCollection();
$route = new Route('/foo');
$route
->setCondition('context.getMethod() == "POST"');
$coll
->add('foo', $route);
$matcher = new UrlMatcher($coll, new RequestContext());
$matcher
->match('/foo');
}