1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 17:19:50 +02:00

Added missing encodedImage test

This commit is contained in:
Oliver Vogel
2021-12-01 16:21:12 +01:00
parent e6d28dcfab
commit bc21f433c3

View File

@@ -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());
}
}