Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
feat: Add test for empty string to MimeType::get
Browse files Browse the repository at this point in the history
  • Loading branch information
happiness9721 authored May 11, 2020
1 parent 1d5aef7 commit 42af646
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Helpers/MimeTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ public function testGet()

$this->assertEquals($mimetype, 'text/css');
}

public function testGetWithEmptyString()
{
$extension = '';
$mimetype = MimeType::get($extension);

$this->assertEquals($mimetype, 'application/octet-stream');
}

public function testFrom()
{
Expand Down

0 comments on commit 42af646

Please sign in to comment.