Neos\Flow\Tests\Unit\Mvc\Routing\RouteTest::routeDoesNotMatchIfRoutePartDoesNotMatchAndDefaultValueIsSet PHP Method

routeDoesNotMatchIfRoutePartDoesNotMatchAndDefaultValueIsSet() public method

    public function routeDoesNotMatchIfRoutePartDoesNotMatchAndDefaultValueIsSet()
    {
        $this->route->setUriPattern('{foo}');
        $this->route->setDefaults(['foo' => 'bar']);
        $this->assertFalse($this->routeMatchesPath(''), 'Route should not match if required Route Part does not match.');
    }
RouteTest