Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 81-94 (lines=14) @@
78
        $this->assertSame('uri:text', $matcher->getName());
79
    }
80
81
    public function testAnalyseURI()
82
    {
83
        $siteAccessURI = '/footestbar';
84
        $semanticURI = '/something/hoho';
85
        $matcher = new URITextMatcher(
86
            [
87
                'prefix' => 'foo',
88
                'suffix' => 'bar',
89
            ]
90
        );
91
        $matcher->setRequest(SimplifiedRequest::fromUrl('http://phoenix-rises.fm/footestbar/blabla'));
92
93
        $this->assertSame($semanticURI, $matcher->analyseURI($siteAccessURI . $semanticURI));
94
    }
95
96
    public function testAnalyseLink()
97
    {
@@ 96-109 (lines=14) @@
93
        $this->assertSame($semanticURI, $matcher->analyseURI($siteAccessURI . $semanticURI));
94
    }
95
96
    public function testAnalyseLink()
97
    {
98
        $siteAccessURI = '/footestbar';
99
        $semanticURI = '/something/hoho';
100
        $matcher = new URITextMatcher(
101
            [
102
                'prefix' => 'foo',
103
                'suffix' => 'bar',
104
            ]
105
        );
106
        $matcher->setRequest(SimplifiedRequest::fromUrl('http://phoenix-rises.fm/footestbar/blabla'));
107
108
        $this->assertSame($siteAccessURI . $semanticURI, $matcher->analyseLink($semanticURI));
109
    }
110
111
    public function testReverseMatch()
112
    {