createTestImage(3, 2); $encoder = new BmpEncoder(); $result = $encoder->encode($image); $this->assertMediaType(['image/bmp', 'image/x-ms-bmp'], $result); $this->assertEquals('image/bmp', $result->mimetype()); } }