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(): array

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

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