mirror of
https://github.com/Intervention/image.git
synced 2025-08-19 04:01:30 +02:00
Add tests
This commit is contained in:
@@ -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');
|
||||
|
@@ -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');
|
||||
|
Reference in New Issue
Block a user