1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-09 13:40:52 +02:00

Fix bug in RemoveAnimationModifiers

This commit is contained in:
Oliver Vogel
2023-10-31 14:47:44 +01:00
parent 2c39ebb1e8
commit e5f141fb65
6 changed files with 40 additions and 10 deletions

View File

@@ -18,7 +18,8 @@ class RemoveAnimationModifierTest extends TestCase
{
$image = $this->createTestImage('animation.gif');
$this->assertEquals(8, count($image));
$image = $image->modify(new RemoveAnimationModifier(2));
$result = $image->modify(new RemoveAnimationModifier(2));
$this->assertEquals(1, count($image));
$this->assertEquals(1, count($result));
}
}

View File

@@ -18,7 +18,8 @@ class RemoveAnimationModifierTest extends TestCase
{
$image = $this->createTestImage('animation.gif');
$this->assertEquals(8, count($image));
$image = $image->modify(new RemoveAnimationModifier(2));
$result = $image->modify(new RemoveAnimationModifier(2));
$this->assertEquals(1, count($image));
$this->assertEquals(1, count($result));
}
}