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

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