public function resolve(array &$routeValues)
{
if ($this->name === null || $this->name === '') {
return false;
}
$this->value = $this->name;
if ($this->lowerCase) {
$this->value = strtolower($this->value);
}
return true;
}
/** * @test */ public function staticRoutePartDoesNotAlterCaseIfLowerCaseIsFalse() { $routePart = new Mvc\Routing\StaticRoutePart(); $routePart->setName('SomeName'); $routePart->setLowerCase(false); $routeValues = []; $routePart->resolve($routeValues); $this->assertEquals('SomeName', $routePart->getValue(), 'By default Static Route Part should not alter the case of name'); }