mirror of
https://github.com/Intervention/image.git
synced 2025-08-20 20:51:20 +02:00
Add tests
This commit is contained in:
@@ -33,6 +33,15 @@ final class RemoveAnimationModifierTest extends GdTestCase
|
|||||||
$this->assertEquals(1, count($result));
|
$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
|
public function testApplyInvalid(): void
|
||||||
{
|
{
|
||||||
$image = $this->readTestImage('animation.gif');
|
$image = $this->readTestImage('animation.gif');
|
||||||
|
@@ -33,6 +33,15 @@ final class RemoveAnimationModifierTest extends ImagickTestCase
|
|||||||
$this->assertEquals(1, count($result));
|
$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
|
public function testApplyInvalid(): void
|
||||||
{
|
{
|
||||||
$image = $this->readTestImage('animation.gif');
|
$image = $this->readTestImage('animation.gif');
|
||||||
|
Reference in New Issue
Block a user