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

valueIsNullAfterUnsuccessfulMatch() public method

    public function valueIsNullAfterUnsuccessfulMatch()
    {
        $this->dynamicRoutPart->setName('foo');
        $this->dynamicRoutPart->setSplitString('/');
        $routePath = 'foo/bar';
        $this->dynamicRoutPart->match($routePath);
        $routePath = '/bar';
        $this->dynamicRoutPart->match($routePath);
        $this->assertNull($this->dynamicRoutPart->getValue(), 'Dynamic Route Part value should be NULL after unsuccessful match.');
    }
DynamicRoutePartTest