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

dynamicRouteMatchesRequestPathWithOnlyOneSegmentIfSplitStringIsNotFound() public method

    public function dynamicRouteMatchesRequestPathWithOnlyOneSegmentIfSplitStringIsNotFound()
    {
        $this->dynamicRoutPart->setName('foo');
        $this->dynamicRoutPart->setSplitString('not-existing');
        $routePath = 'bar';
        $this->assertTrue($this->dynamicRoutPart->match($routePath));
        $this->assertEquals('bar', $this->dynamicRoutPart->getValue(), 'Dynamic Route Part should match if request Path has only one segment and does not contain split string.');
    }
DynamicRoutePartTest