eZ\Publish\Core\MVC\Symfony\SiteAccess\Tests\RouterMapURITest::testAnalyseURI PHP Method

testAnalyseURI() public method

public testAnalyseURI ( string $uri, string $expectedFixedUpURI )
$uri string
$expectedFixedUpURI string
    public function testAnalyseURI($uri, $expectedFixedUpURI)
    {
        $matcher = new URIMapMatcher(array());
        $matcher->setRequest(new SimplifiedRequest(array('pathinfo' => $uri)));
        $this->assertSame($expectedFixedUpURI, $matcher->analyseURI($uri));
        // Unserialized matcher should have the same behavior
        $unserializedMatcher = unserialize(serialize($matcher));
        $this->assertSame($expectedFixedUpURI, $unserializedMatcher->analyseURI($uri));
    }