Code Duplication    Length = 3-3 lines in 3 locations

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

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

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

@@ 142-144 (lines=3) @@
139
140
    public function testImageMagickConfigurationBasic()
141
    {
142
        if (!isset($_ENV['imagemagickConvertPath']) || !is_executable($_ENV['imagemagickConvertPath'])) {
143
            $this->markTestSkipped('Missing or mis-configured Imagemagick convert path.');
144
        }
145
146
        $this->load(
147
            array(
@@ 161-163 (lines=3) @@
158
159
    public function testImageMagickConfigurationFilters()
160
    {
161
        if (!isset($_ENV['imagemagickConvertPath']) || !is_executable($_ENV['imagemagickConvertPath'])) {
162
            $this->markTestSkipped('Missing or mis-configured Imagemagick convert path.');
163
        }
164
165
        $customFilters = array(
166
            'foobar' => '-foobar',