mirror of
https://github.com/Intervention/image.git
synced 2025-08-31 17:41:58 +02:00
Added missing encodedImage test
This commit is contained in:
@@ -34,4 +34,13 @@ class EncodedImageTest extends TestCase
|
|||||||
$image = new EncodedImage('foo', 'bar');
|
$image = new EncodedImage('foo', 'bar');
|
||||||
$this->assertEquals('foo', (string) $image);
|
$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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user