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

valueMatchesFirstRequestPathSegmentAfterSuccessfulMatch() public method

    public function valueMatchesFirstRequestPathSegmentAfterSuccessfulMatch()
    {
        $this->dynamicRoutPart->setName('foo');
        $this->dynamicRoutPart->setDefaultValue('bar');
        $this->dynamicRoutPart->setSplitString('/');
        $routePath = 'firstSegment/secondSegment';
        $this->dynamicRoutPart->match($routePath);
        $this->assertEquals('firstSegment', $this->dynamicRoutPart->getValue(), 'value of Dynamic Route Part should be equal to first request path segment after successful match.');
    }
DynamicRoutePartTest