You are here

protected function TestableProviderBasedGenerator::doGenerate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/Tests/Routing/ProviderBasedGeneratorTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\TestableProviderBasedGenerator::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/ProviderBasedGeneratorTest.php, line 132

Class

TestableProviderBasedGenerator
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';
}