You are here

public function RouterTest::testSetOptionsWithUnsupportedOptions 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::testSetOptionsWithUnsupportedOptions()

@expectedException \InvalidArgumentException @expectedExceptionMessage The Router does not support the following options: "option_foo", "option_bar"

File

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

Class

RouterTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testSetOptionsWithUnsupportedOptions() {
  $this->router
    ->setOptions(array(
    'cache_dir' => './cache',
    'option_foo' => true,
    'option_bar' => 'baz',
    'resource_type' => 'ResourceType',
  ));
}