Code Duplication    Length = 8-8 lines in 5 locations

eZ/Publish/Core/MVC/Symfony/SiteAccess/Tests/RouterURIElement2Test.php 3 locations

@@ 136-143 (lines=8) @@
133
     *
134
     * @dataProvider analyseProvider
135
     */
136
    public function testAnalyseURI($level, $uri, $expectedFixedUpURI)
137
    {
138
        $matcher = new URIElementMatcher([$level]);
139
        $matcher->setRequest(
140
            new SimplifiedRequest(['pathinfo' => $uri])
141
        );
142
        $this->assertSame($expectedFixedUpURI, $matcher->analyseURI($uri));
143
    }
144
145
    /**
146
     * @param int $level
@@ 152-159 (lines=8) @@
149
     *
150
     * @dataProvider analyseProvider
151
     */
152
    public function testAnalyseURILevelAsInt($level, $uri, $expectedFixedUpURI)
153
    {
154
        $matcher = new URIElementMatcher($level);
155
        $matcher->setRequest(
156
            new SimplifiedRequest(['pathinfo' => $uri])
157
        );
158
        $this->assertSame($expectedFixedUpURI, $matcher->analyseURI($uri));
159
    }
160
161
    /**
162
     * @param int $level
@@ 168-175 (lines=8) @@
165
     *
166
     * @dataProvider analyseProvider
167
     */
168
    public function testAnalyseLink($level, $fullUri, $linkUri)
169
    {
170
        $matcher = new URIElementMatcher([$level]);
171
        $matcher->setRequest(
172
            new SimplifiedRequest(['pathinfo' => $fullUri])
173
        );
174
        $this->assertSame($fullUri, $matcher->analyseLink($linkUri));
175
    }
176
177
    public function analyseProvider()
178
    {

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

@@ 139-146 (lines=8) @@
136
     *
137
     * @dataProvider analyseProvider
138
     */
139
    public function testAnalyseURI($uri, $expectedFixedUpURI)
140
    {
141
        $matcher = new URIElementMatcher([1]);
142
        $matcher->setRequest(
143
            new SimplifiedRequest(['pathinfo' => $uri])
144
        );
145
        $this->assertSame($expectedFixedUpURI, $matcher->analyseURI($uri));
146
    }
147
148
    /**
149
     * @param string $fullUri
@@ 154-161 (lines=8) @@
151
     *
152
     * @dataProvider analyseProvider
153
     */
154
    public function testAnalyseLink($fullUri, $linkUri)
155
    {
156
        $matcher = new URIElementMatcher([1]);
157
        $matcher->setRequest(
158
            new SimplifiedRequest(['pathinfo' => $fullUri])
159
        );
160
        $this->assertSame($fullUri, $matcher->analyseLink($linkUri));
161
    }
162
163
    public function analyseProvider()
164
    {