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

routeMatchesRequestPathWithAllPartsIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts() public method

    public function routeMatchesRequestPathWithAllPartsIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts()
    {
        $this->route->setUriPattern('(optional1/optional2/)required1/required2');
        $this->assertTrue($this->routeMatchesPath('optional1/optional2/required1/required2'));
    }
RouteTest