You are here

public function RouterTest::testSetOptionsWithSupportedOptions in Zircon Profile 8.0

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

File

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

Class

RouterTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testSetOptionsWithSupportedOptions() {
  $this->router
    ->setOptions(array(
    'cache_dir' => './cache',
    'debug' => true,
    'resource_type' => 'ResourceType',
  ));
  $this
    ->assertSame('./cache', $this->router
    ->getOption('cache_dir'));
  $this
    ->assertTrue($this->router
    ->getOption('debug'));
  $this
    ->assertSame('ResourceType', $this->router
    ->getOption('resource_type'));
}