You are here

protected function TestableContentAwareGenerator::doGenerate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/Tests/Routing/ContentAwareGeneratorTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\TestableContentAwareGenerator::doGenerate()

Throws

MissingMandatoryParametersException When some parameters are missing that are mandatory for the route

InvalidParameterException When a parameter value for a placeholder is not correct because it does not match the requirement

Overrides UrlGenerator::doGenerate

File

vendor/symfony-cmf/routing/Tests/Routing/ContentAwareGeneratorTest.php, line 439

Class

TestableContentAwareGenerator
Overwrite doGenerate to reduce amount of mocking needed

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

protected function doGenerate($variables, $defaults, $requirements, $tokens, $parameters, $name, $referenceType, $hostTokens, array $requiredSchemes = array()) {
  return 'result_url';
}