Neos\Flow\Tests\Unit\Mvc\Routing\DynamicRoutePartTest::dynamicRoutePartDoesNotMatchEmptyRequestPathEvenIfDefaultValueIsSet PHP Метод

dynamicRoutePartDoesNotMatchEmptyRequestPathEvenIfDefaultValueIsSet() публичный Метод

    public function dynamicRoutePartDoesNotMatchEmptyRequestPathEvenIfDefaultValueIsSet()
    {
        $this->dynamicRoutPart->setName('foo');
        $this->dynamicRoutPart->setDefaultValue('bar');
        $routePath = '';
        $this->assertFalse($this->dynamicRoutPart->match($routePath), 'Dynamic Route Part should not match if $routePath is empty.');
    }
DynamicRoutePartTest