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

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