You are here

public function RouterTest::testMatcherIsCreatedIfCacheIsNotConfigured in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/RouterTest.php \Symfony\Component\Routing\Tests\RouterTest::testMatcherIsCreatedIfCacheIsNotConfigured()

@dataProvider provideMatcherOptionsPreventingCaching

File

vendor/symfony/routing/Tests/RouterTest.php, line 97

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());
}