public function MimeTypeTest::testGuessImageWithFileBinaryMimeTypeGuesser in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/File/MimeType/MimeTypeTest.php \Symfony\Component\HttpFoundation\Tests\File\MimeType\MimeTypeTest::testGuessImageWithFileBinaryMimeTypeGuesser()
File
- vendor/
symfony/ http-foundation/ Tests/ File/ MimeType/ MimeTypeTest.php, line 36
Class
- MimeTypeTest
- @requires extension fileinfo
Namespace
Symfony\Component\HttpFoundation\Tests\File\MimeTypeCode
public function testGuessImageWithFileBinaryMimeTypeGuesser() {
$guesser = MimeTypeGuesser::getInstance();
$guesser
->register(new FileBinaryMimeTypeGuesser());
$this
->assertEquals('image/gif', MimeTypeGuesser::getInstance()
->guess(__DIR__ . '/../Fixtures/test'));
}