You are here

protected function UrlGeneratorTest::getGenerator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/Generator/UrlGeneratorTest.php \Symfony\Component\Routing\Tests\Generator\UrlGeneratorTest::getGenerator()
13 calls to UrlGeneratorTest::getGenerator()
UrlGeneratorTest::testAdjacentVariables in vendor/symfony/routing/Tests/Generator/UrlGeneratorTest.php
UrlGeneratorTest::testDefaultRequirementOfVariable in vendor/symfony/routing/Tests/Generator/UrlGeneratorTest.php
UrlGeneratorTest::testGenerateForRouteWithInvalidOptionalParameterNonStrict in vendor/symfony/routing/Tests/Generator/UrlGeneratorTest.php
UrlGeneratorTest::testGenerateForRouteWithInvalidOptionalParameterNonStrictWithLogger in vendor/symfony/routing/Tests/Generator/UrlGeneratorTest.php
UrlGeneratorTest::testGenerateForRouteWithInvalidParameterButDisabledRequirementsCheck in vendor/symfony/routing/Tests/Generator/UrlGeneratorTest.php

... See full list

File

vendor/symfony/routing/Tests/Generator/UrlGeneratorTest.php, line 646

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

protected function getGenerator(RouteCollection $routes, array $parameters = array(), $logger = null) {
  $context = new RequestContext('/app.php');
  foreach ($parameters as $key => $value) {
    $method = 'set' . $key;
    $context
      ->{$method}($value);
  }
  $generator = new UrlGenerator($routes, $context, $logger);
  return $generator;
}