Skip to content

Commit 4ea0d0b

Browse files
committed
test: Add unit test for Mime::fix() changes
1 parent 3f5526c commit 4ea0d0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Filesystem/MimeTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ public function testFixSvg(): void
2929
$this->assertSame('image/svg+xml', Mime::fix(static::FIXTURES . '/unoptimized.svg', 'text/html', 'svg'));
3030
}
3131

32+
public function testFixNull(): void
33+
{
34+
$this->assertSame('text/css', Mime::fix('something.css', 'text/css', null));
35+
$this->assertSame(null, Mime::fix('something.css', null, null));
36+
}
37+
3238
public function testFromExtension(): void
3339
{
3440
$mime = Mime::fromExtension('jpg');

0 commit comments

Comments
 (0)