1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-19 04:01:30 +02:00

Add tests

This commit is contained in:
Oliver Vogel
2024-12-28 10:15:24 +01:00
parent 8230387f14
commit ca067a8fbb
2 changed files with 18 additions and 0 deletions

View File

@@ -33,6 +33,15 @@ final class RemoveAnimationModifierTest extends GdTestCase
$this->assertEquals(1, count($result));
}
public function testApplyNonAnimated(): void
{
$image = $this->readTestImage('test.jpg');
$this->assertEquals(1, count($image));
$result = $image->modify(new RemoveAnimationModifier());
$this->assertEquals(1, count($image));
$this->assertEquals(1, count($result));
}
public function testApplyInvalid(): void
{
$image = $this->readTestImage('animation.gif');

View File

@@ -33,6 +33,15 @@ final class RemoveAnimationModifierTest extends ImagickTestCase
$this->assertEquals(1, count($result));
}
public function testApplyNonAnimated(): void
{
$image = $this->readTestImage('test.jpg');
$this->assertEquals(1, count($image));
$result = $image->modify(new RemoveAnimationModifier());
$this->assertEquals(1, count($image));
$this->assertEquals(1, count($result));
}
public function testApplyInvalid(): void
{
$image = $this->readTestImage('animation.gif');