diff --git a/tests/EncodedImageTest.php b/tests/EncodedImageTest.php index 7e4ac637..20c87ee4 100644 --- a/tests/EncodedImageTest.php +++ b/tests/EncodedImageTest.php @@ -34,4 +34,13 @@ class EncodedImageTest extends TestCase $image = new EncodedImage('foo', 'bar'); $this->assertEquals('foo', (string) $image); } + + public function testMimetype(): void + { + $image = new EncodedImage('foo'); + $this->assertEquals('application/octet-stream', $image->mimetype()); + + $image = new EncodedImage('foo', 'image/jpeg'); + $this->assertEquals('image/jpeg', $image->mimetype()); + } }