public function RouterTest::testMatcherIsCreatedIfCacheIsNotConfigured

@dataProvider provideMatcherOptionsPreventingCaching

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/RouterTest.php, line 96

Class

RouterTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testMatcherIsCreatedIfCacheIsNotConfigured($option) {
  $this->router
    ->setOption($option, null);
  $this->loader
    ->expects($this
    ->once())
    ->method('load')
    ->with('routing.yml', null)
    ->will($this
    ->returnValue($this
    ->getMock('Symfony\\Component\\Routing\\RouteCollection')));
  $this
    ->assertInstanceOf('Symfony\\Component\\Routing\\Matcher\\UrlMatcher', $this->router
    ->getMatcher());
}