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

@@ 128-130 (lines=3) @@
125
126
    public function testImageMagickConfigurationBasic()
127
    {
128
        if (!isset($_ENV['imagemagickConvertPath']) || !is_executable($_ENV['imagemagickConvertPath'])) {
129
            $this->markTestSkipped('Missing or mis-configured Imagemagick convert path.');
130
        }
131
132
        $this->load(
133
            [
@@ 147-149 (lines=3) @@
144
145
    public function testImageMagickConfigurationFilters()
146
    {
147
        if (!isset($_ENV['imagemagickConvertPath']) || !is_executable($_ENV['imagemagickConvertPath'])) {
148
            $this->markTestSkipped('Missing or mis-configured Imagemagick convert path.');
149
        }
150
151
        $customFilters = [
152
            'foobar' => '-foobar',