public function FileTest::testGetMimeTypeUsesMimeTypeGuessers in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/File/FileTest.php \Symfony\Component\HttpFoundation\Tests\File\FileTest::testGetMimeTypeUsesMimeTypeGuessers()
File
- vendor/
symfony/ http-foundation/ Tests/ File/ FileTest.php, line 21
Class
Namespace
Symfony\Component\HttpFoundation\Tests\FileCode
public function testGetMimeTypeUsesMimeTypeGuessers() {
$file = new File(__DIR__ . '/Fixtures/test.gif');
$guesser = $this
->createMockGuesser($file
->getPathname(), 'image/gif');
MimeTypeGuesser::getInstance()
->register($guesser);
$this
->assertEquals('image/gif', $file
->getMimeType());
}