Skip to content

Commit 42af646

Browse files
feat: Add test for empty string to MimeType::get
1 parent 1d5aef7 commit 42af646

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Helpers/MimeTypeTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ public function testGet()
1414

1515
$this->assertEquals($mimetype, 'text/css');
1616
}
17+
18+
public function testGetWithEmptyString()
19+
{
20+
$extension = '';
21+
$mimetype = MimeType::get($extension);
22+
23+
$this->assertEquals($mimetype, 'application/octet-stream');
24+
}
1725

1826
public function testFrom()
1927
{

0 commit comments

Comments
 (0)