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

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

    public function routePathIsShortenedByOneSegmentAfterSuccessfulMatch()
    {
        $this->dynamicRoutPart->setName('bar');
        $this->dynamicRoutPart->setSplitString('/');
        $routePath = 'bar/foo/test';
        $this->dynamicRoutPart->match($routePath);
        $this->assertSame('/foo/test', $routePath, 'Dynamic Route Part should shorten request path by one segment on successful match.');
    }
DynamicRoutePartTest