Skip to content

Commit ba0f501

Browse files
committed
Merge branch 'imagemagick-6-bug' into next
2 parents 3c6635f + e483287 commit ba0f501

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

tests/Unit/Drivers/Imagick/ImageTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
use Intervention\Image\Tests\ImagickTestCase;
4040
use Intervention\Image\Tests\Resource;
4141
use PHPUnit\Framework\Attributes\CoversClass;
42+
use PHPUnit\Framework\Attributes\PreserveGlobalState;
4243
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
4344
use PHPUnit\Framework\Attributes\RunInSeparateProcess;
4445

@@ -319,6 +320,7 @@ public function testInvert(): void
319320
* Runs in separate process because of possible imagick-6 memory bug
320321
*/
321322
#[RunInSeparateProcess]
323+
#[PreserveGlobalState(true)]
322324
public function testPixelate(): void
323325
{
324326
$image = $this->readTestImage('trim.png');

tests/Unit/Drivers/Imagick/Modifiers/PixelateModifierTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
99
use Intervention\Image\Modifiers\PixelateModifier;
1010
use Intervention\Image\Tests\ImagickTestCase;
11+
use PHPUnit\Framework\Attributes\PreserveGlobalState;
1112
use PHPUnit\Framework\Attributes\RunInSeparateProcess;
1213

1314
#[RequiresPhpExtension('imagick')]
@@ -19,6 +20,7 @@ final class PixelateModifierTest extends ImagickTestCase
1920
* Runs in separate process because of possible imagick-6 memory bug
2021
*/
2122
#[RunInSeparateProcess]
23+
#[PreserveGlobalState(true)]
2224
public function testModify(): void
2325
{
2426
$image = $this->readTestImage('trim.png');

0 commit comments

Comments
 (0)