Skip to content

Commit

Permalink
Add negative tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Apr 14, 2024
1 parent 490b8ae commit 3ff1573
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Unit/Drivers/Gd/Encoders/PngEncoderTest.php
Expand Up @@ -23,6 +23,7 @@ public function testEncode(): void
$encoder = new PngEncoder();
$result = $encoder->encode($image);
$this->assertMediaType('image/png', (string) $result);
$this->assertFalse($this->isInterlacedPng((string) $result));
}

public function testEncodeInterlaced(): void
Expand Down
1 change: 1 addition & 0 deletions tests/Unit/Drivers/Imagick/Encoders/PngEncoderTest.php
Expand Up @@ -23,6 +23,7 @@ public function testEncode(): void
$encoder = new PngEncoder();
$result = $encoder->encode($image);
$this->assertMediaType('image/png', (string) $result);
$this->assertFalse($this->isInterlacedPng((string) $result));
}

public function testEncodeInterlaced(): void
Expand Down

0 comments on commit 3ff1573

Please sign in to comment.