mirror of
https://github.com/Intervention/image.git
synced 2025-08-16 10:54:02 +02:00
Add negative tests
This commit is contained in:
@@ -23,6 +23,7 @@ final class PngEncoderTest extends GdTestCase
|
|||||||
$encoder = new PngEncoder();
|
$encoder = new PngEncoder();
|
||||||
$result = $encoder->encode($image);
|
$result = $encoder->encode($image);
|
||||||
$this->assertMediaType('image/png', (string) $result);
|
$this->assertMediaType('image/png', (string) $result);
|
||||||
|
$this->assertFalse($this->isInterlacedPng((string) $result));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testEncodeInterlaced(): void
|
public function testEncodeInterlaced(): void
|
||||||
|
@@ -23,6 +23,7 @@ final class PngEncoderTest extends ImagickTestCase
|
|||||||
$encoder = new PngEncoder();
|
$encoder = new PngEncoder();
|
||||||
$result = $encoder->encode($image);
|
$result = $encoder->encode($image);
|
||||||
$this->assertMediaType('image/png', (string) $result);
|
$this->assertMediaType('image/png', (string) $result);
|
||||||
|
$this->assertFalse($this->isInterlacedPng((string) $result));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testEncodeInterlaced(): void
|
public function testEncodeInterlaced(): void
|
||||||
|
Reference in New Issue
Block a user