Neos\Flow\Tests\Unit\Mvc\Routing\DynamicRoutePartTest::dynamicRoutePartDoesNotMatchEmptyRequestPathEvenIfDefaultValueIsSet PHP Method

dynamicRoutePartDoesNotMatchEmptyRequestPathEvenIfDefaultValueIsSet() public method

    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