You are here

public function FunctionsTest::testDetermineMimetype in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/tests/FunctionsTest.php \GuzzleHttp\Tests\Psr7\FunctionsTest::testDetermineMimetype()

File

vendor/guzzlehttp/psr7/tests/FunctionsTest.php, line 313

Class

FunctionsTest

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testDetermineMimetype() {
  $this
    ->assertNull(Psr7\mimetype_from_extension('not-a-real-extension'));
  $this
    ->assertEquals('application/json', Psr7\mimetype_from_extension('json'));
  $this
    ->assertEquals('image/jpeg', Psr7\mimetype_from_filename('/tmp/images/IMG034821.JPEG'));
}