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

dynamicRoutePartDoesNotMatchIfSplitStringIsAtFirstPosition() public method

    public function dynamicRoutePartDoesNotMatchIfSplitStringIsAtFirstPosition()
    {
        $this->dynamicRoutPart->setName('foo');
        $this->dynamicRoutPart->setSplitString('-');
        $routePath = '-foo/bar';
        $this->assertFalse($this->dynamicRoutPart->match($routePath), 'Dynamic Route Part should not match if split string is first character of current request path.');
    }
DynamicRoutePartTest