File tree Expand file tree Collapse file tree
tests/Unit/Drivers/Imagick Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939use Intervention \Image \Tests \ImagickTestCase ;
4040use Intervention \Image \Tests \Resource ;
4141use PHPUnit \Framework \Attributes \CoversClass ;
42+ use PHPUnit \Framework \Attributes \PreserveGlobalState ;
4243use PHPUnit \Framework \Attributes \RequiresPhpExtension ;
4344use 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 ' );
Original file line number Diff line number Diff line change 88use PHPUnit \Framework \Attributes \RequiresPhpExtension ;
99use Intervention \Image \Modifiers \PixelateModifier ;
1010use Intervention \Image \Tests \ImagickTestCase ;
11+ use PHPUnit \Framework \Attributes \PreserveGlobalState ;
1112use 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 ' );
You can’t perform that action at this time.
0 commit comments