<?php mime_content_type(resource|string $filename): string|false
<?php $this->assertEquals($gifCore->getImageMimeType(), 'image/gif'); $image->save($save_as, null, 'jpg'); $this->assertEquals(\mime_content_type($save_as), 'image/jpeg'); @unlink($save_as); }