From 9ce28b7f7827aedde3e08167293e4a31c95b2e3b Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Wed, 1 Dec 2021 18:14:03 +0000 Subject: [PATCH] Added Gd Encoder Test --- tests/Drivers/Gd/Encoders/PngEncoderTest.php | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/Drivers/Gd/Encoders/PngEncoderTest.php diff --git a/tests/Drivers/Gd/Encoders/PngEncoderTest.php b/tests/Drivers/Gd/Encoders/PngEncoderTest.php new file mode 100644 index 00000000..065aa4d6 --- /dev/null +++ b/tests/Drivers/Gd/Encoders/PngEncoderTest.php @@ -0,0 +1,29 @@ +getTestImage(); + $encoder = new PngEncoder(); + $result = $encoder->encode($image); + $this->assertTrue(MimeSniffer::createFromString($result)->matches(new ImagePng)); + } +} \ No newline at end of file