Code Duplication    Length = 3-3 lines in 3 locations

eZ/Bundle/EzPublishCoreBundle/Tests/DependencyInjection/Configuration/Parser/ImageTest.php 1 location

@@ 23-25 (lines=3) @@
20
    {
21
        parent::setUp();
22
23
        if (!isset($_ENV['imagemagickConvertPath']) || !is_executable($_ENV['imagemagickConvertPath'])) {
24
            $this->markTestSkipped('Missing or mis-configured Imagemagick convert path.');
25
        }
26
    }
27
28
    protected function getMinimalConfiguration()

eZ/Bundle/EzPublishCoreBundle/Tests/DependencyInjection/EzPublishCoreExtensionTest.php 2 locations

@@ 185-187 (lines=3) @@
182
183
    public function testImageMagickConfigurationBasic()
184
    {
185
        if (!isset($_ENV['imagemagickConvertPath']) || !is_executable($_ENV['imagemagickConvertPath'])) {
186
            $this->markTestSkipped('Missing or mis-configured Imagemagick convert path.');
187
        }
188
189
        $this->load(
190
            array(
@@ 204-206 (lines=3) @@
201
202
    public function testImageMagickConfigurationFilters()
203
    {
204
        if (!isset($_ENV['imagemagickConvertPath']) || !is_executable($_ENV['imagemagickConvertPath'])) {
205
            $this->markTestSkipped('Missing or mis-configured Imagemagick convert path.');
206
        }
207
208
        $customFilters = array(
209
            'foobar' => '-foobar',