You are here

public function RouteTest::testRouteParameters in Zircon Profile 8

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

@dataProvider getValidParameters

File

vendor/symfony/routing/Tests/Annotation/RouteTest.php, line 29

Class

RouteTest

Namespace

Symfony\Component\Routing\Tests\Annotation

Code

public function testRouteParameters($parameter, $value, $getter) {
  $route = new Route(array(
    $parameter => $value,
  ));
  $this
    ->assertEquals($route
    ->{$getter}(), $value);
}