Code Duplication    Length = 11-11 lines in 2 locations

eZ/Publish/Core/MVC/Symfony/SiteAccess/Tests/RouterMapURITest.php 2 locations

@@ 41-51 (lines=11) @@
38
     *
39
     * @dataProvider fixupURIProvider
40
     */
41
    public function testAnalyseURI($uri, $expectedFixedUpURI)
42
    {
43
        $matcher = new URIMapMatcher(array());
44
        $matcher->setRequest(
45
            new SimplifiedRequest(array('pathinfo' => $uri))
46
        );
47
        $this->assertSame($expectedFixedUpURI, $matcher->analyseURI($uri));
48
        // Unserialized matcher should have the same behavior
49
        $unserializedMatcher = unserialize(serialize($matcher));
50
        $this->assertSame($expectedFixedUpURI, $unserializedMatcher->analyseURI($uri));
51
    }
52
53
    /**
54
     * @param string $fullUri
@@ 59-69 (lines=11) @@
56
     *
57
     * @dataProvider fixupURIProvider
58
     */
59
    public function testAnalyseLink($fullUri, $linkUri)
60
    {
61
        $matcher = new URIMapMatcher(array());
62
        $matcher->setRequest(
63
            new SimplifiedRequest(array('pathinfo' => $fullUri))
64
        );
65
        $this->assertSame($fullUri, $matcher->analyseLink($linkUri));
66
        // Unserialized matcher should have the same behavior
67
        $unserializedMatcher = unserialize(serialize($matcher));
68
        $this->assertSame($fullUri, $unserializedMatcher->analyseLink($linkUri));
69
    }
70
71
    public function setRequestProvider()
72
    {