Neos\Flow\Tests\Unit\Mvc\Routing\RouteTest::routeMatchesIfRoutePartDoesNotMatchButIsOptionalAndHasDefault PHP 메소드

routeMatchesIfRoutePartDoesNotMatchButIsOptionalAndHasDefault() 공개 메소드

    public function routeMatchesIfRoutePartDoesNotMatchButIsOptionalAndHasDefault()
    {
        $this->route->setUriPattern('({foo})');
        $this->route->setDefaults(['foo' => 'bar']);
        $this->assertTrue($this->routeMatchesPath(''), 'Route should match if optional Route Part has a default value.');
    }
RouteTest