You are here

public function RouteTest::testSetInvalidRequirement in Zircon Profile 8.0

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

@dataProvider getInvalidRequirements @expectedException \InvalidArgumentException

File

vendor/symfony/routing/Tests/RouteTest.php, line 128

Class

RouteTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testSetInvalidRequirement($req) {
  $route = new Route('/{foo}');
  $route
    ->setRequirement('foo', $req);
}