public function RedirectableUrlMatcherTest::testRedirectWhenNoSlashForNonSafeMethod in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/routing/Tests/Matcher/RedirectableUrlMatcherTest.php \Symfony\Component\Routing\Tests\Matcher\RedirectableUrlMatcherTest::testRedirectWhenNoSlashForNonSafeMethod()
@expectedException \Symfony\Component\Routing\Exception\ResourceNotFoundException
File
- vendor/
symfony/ routing/ Tests/ Matcher/ RedirectableUrlMatcherTest.php, line 33
Class
Namespace
Symfony\Component\Routing\Tests\MatcherCode
public function testRedirectWhenNoSlashForNonSafeMethod() {
$coll = new RouteCollection();
$coll
->add('foo', new Route('/foo/'));
$context = new RequestContext();
$context
->setMethod('POST');
$matcher = $this
->getMockForAbstractClass('Symfony\\Component\\Routing\\Matcher\\RedirectableUrlMatcher', array(
$coll,
$context,
));
$matcher
->match('/foo');
}