public function RouterTest::testSetOptionsWithSupportedOptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Tests/RouterTest.php \Symfony\Component\Routing\Tests\RouterTest::testSetOptionsWithSupportedOptions()
File
- vendor/
symfony/ routing/ Tests/ RouterTest.php, line 29
Class
Namespace
Symfony\Component\Routing\TestsCode
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'));
}