Code Duplication    Length = 8-20 lines in 4 locations

eZ/Publish/Core/IO/Tests/UrlDecorator/PrefixTest.php 1 location

@@ 52-71 (lines=20) @@
49
        return new Prefix($prefix);
50
    }
51
52
    public function provideData()
53
    {
54
        return array(
55
            array(
56
                'images/file.png',
57
                'var/storage',
58
                'var/storage/images/file.png',
59
            ),
60
            array(
61
                'images/file.png',
62
                'var/storage/',
63
                'var/storage/images/file.png',
64
            ),
65
            array(
66
                'images/file.png',
67
                'http://static.example.com',
68
                'http://static.example.com/images/file.png',
69
            ),
70
        );
71
    }
72
}
73

eZ/Bundle/EzPublishCoreBundle/Tests/Imagine/Filter/Loader/BorderFilterLoaderTest.php 1 location

@@ 126-133 (lines=8) @@
123
        $this->assertSame($image, $loader->load($image, $options));
124
    }
125
126
    public function loadProvider()
127
    {
128
        return array(
129
            array(10, 10, '#fff'),
130
            array(5, 5, '#5dcb4f'),
131
            array(50, 50, '#fa1629'),
132
        );
133
    }
134
}
135

eZ/Publish/Core/Persistence/Legacy/Tests/Content/Language/MaskGeneratorTest.php 1 location

@@ 208-216 (lines=9) @@
205
     *
206
     * @return array
207
     */
208
    public function removeAlwaysAvailableFlagProvider()
209
    {
210
        return array(
211
            array(3, 2),
212
            array(7, 6),
213
            array(14, 14),
214
            array(62, 62),
215
        );
216
    }
217
218
    /**
219
     * @param int $langMask

eZ/Publish/API/Repository/Tests/URLServiceTest.php 1 location

@@ 715-723 (lines=9) @@
712
        $this->assertUsagesSearchResultItems($usagesSearchResults, $expectedContentInfos);
713
    }
714
715
    public function dataProviderForFindUsages()
716
    {
717
        return [
718
            // findUsages($url, 0, -1)
719
            [23, 0, -1, [54], 1],
720
            // findUsages($url, 0, $limit)
721
            [23, 0, 1, [54], 1],
722
        ];
723
    }
724
725
    /**
726
     * Test for URLService::testFindUsages() method.