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

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