public function RouterTest::testSetOptionsWithUnsupportedOptions

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

File

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

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',
  ));
}