mirror of
https://github.com/Intervention/image.git
synced 2025-03-11 04:39:38 +01:00
Add negative tests
This commit is contained in:
parent
490b8ae5c4
commit
3ff1573b78
@ -23,6 +23,7 @@ final class PngEncoderTest extends GdTestCase
|
||||
$encoder = new PngEncoder();
|
||||
$result = $encoder->encode($image);
|
||||
$this->assertMediaType('image/png', (string) $result);
|
||||
$this->assertFalse($this->isInterlacedPng((string) $result));
|
||||
}
|
||||
|
||||
public function testEncodeInterlaced(): void
|
||||
|
@ -23,6 +23,7 @@ final class PngEncoderTest extends ImagickTestCase
|
||||
$encoder = new PngEncoder();
|
||||
$result = $encoder->encode($image);
|
||||
$this->assertMediaType('image/png', (string) $result);
|
||||
$this->assertFalse($this->isInterlacedPng((string) $result));
|
||||
}
|
||||
|
||||
public function testEncodeInterlaced(): void
|
||||
|
Loading…
x
Reference in New Issue
Block a user