[Routing] Fix tests
This commit is contained in:
parent
1e1b85c99c
commit
3c67741954
@ -76,7 +76,7 @@ class PhpMatcherDumperTest extends TestCase
|
|||||||
->setConstructorArgs(array(new RequestContext()))
|
->setConstructorArgs(array(new RequestContext()))
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
$matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/', 'foo');
|
$matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/', 'foo')->willReturn(array());
|
||||||
|
|
||||||
$matcher->match('/foo%3Abar');
|
$matcher->match('/foo%3Abar');
|
||||||
}
|
}
|
||||||
|
@ -105,7 +105,7 @@ class RedirectableUrlMatcherTest extends TestCase
|
|||||||
$coll->add('foo', new Route('/foo:bar/'));
|
$coll->add('foo', new Route('/foo:bar/'));
|
||||||
|
|
||||||
$matcher = $this->getMockForAbstractClass('Symfony\Component\Routing\Matcher\RedirectableUrlMatcher', array($coll, new RequestContext()));
|
$matcher = $this->getMockForAbstractClass('Symfony\Component\Routing\Matcher\RedirectableUrlMatcher', array($coll, new RequestContext()));
|
||||||
$matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/');
|
$matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/')->willReturn(array());
|
||||||
$matcher->match('/foo%3Abar');
|
$matcher->match('/foo%3Abar');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user