@expectedException \InvalidArgumentException
public function testMatchUrlWithRequestMatcher() {
$matcher = $this
->buildMock('Symfony\\Component\\Routing\\Matcher\\RequestMatcherInterface', array(
'matchRequest',
'setContext',
'getContext',
));
$router = new DynamicRouter($this->context, $matcher, $this->generator);
$router
->match($this->url);
}