eZ\Publish\Core\MVC\Symfony\SiteAccess\Tests\RouterURIElement2Test::testAnalyseURILevelAsInt PHP Method

testAnalyseURILevelAsInt() public method

public testAnalyseURILevelAsInt ( integer $level, string $uri, string $expectedFixedUpURI )
$level integer
$uri string
$expectedFixedUpURI string
    public function testAnalyseURILevelAsInt($level, $uri, $expectedFixedUpURI)
    {
        $matcher = new URIElementMatcher($level);
        $matcher->setRequest(new SimplifiedRequest(array('pathinfo' => $uri)));
        $this->assertSame($expectedFixedUpURI, $matcher->analyseURI($uri));
    }