1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-25 23:06:13 +02:00

Add test assertions to validate the correct mime type

This commit is contained in:
Oliver Vogel
2024-10-27 11:15:54 +01:00
parent f712d684db
commit b496d1f6b9
15 changed files with 23 additions and 0 deletions

View File

@@ -20,5 +20,6 @@ final class BmpEncoderTest extends GdTestCase
$encoder = new BmpEncoder();
$result = $encoder->encode($image);
$this->assertMediaType(['image/bmp', 'image/x-ms-bmp'], $result);
$this->assertEquals('image/bmp', $result->mimetype());
}
}