public setLowerCase ( boolean $lowerCase ) : void | ||
$lowerCase | boolean | TRUE: Route parts are converted to lower case by default. FALSE: Route parts are not altered. |
Résultat | void |
public function setLowerCase($lowerCase)
{
$this->lowerCase = (bool) $lowerCase;
}
/** * @test */ public function resolvesKeepsCaseOfResolvedUriIfToLowerCaseIsFalse() { $this->route->setUriPattern('CamelCase/{someKey}'); $this->route->setLowerCase(false); $this->routeValues = ['someKey' => 'CamelCase']; $this->assertTrue($this->route->resolves($this->routeValues)); $this->assertEquals('CamelCase/CamelCase', $this->route->getResolvedUriPath()); }