Skip to content

Commit

Permalink
Added more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ruff committed Sep 22, 2023
1 parent a8c3b26 commit 7d74539
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testcases/MimeDbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ public function testFindAllMimeTypesByExtension(): void
$this->assertArrayNotHasKey(1, $this->mimeDb->findAllMimeTypesByExtension('.docx'));
$this->assertEquals("application/vnd.openxmlformats-officedocument.wordprocessingml.document", $this->mimeDb->findAllMimeTypesByExtension('.docx')[0]);

$this->assertIsArray($this->mimeDb->findAllMimeTypesByExtension('docx'));
$this->assertArrayHasKey(0, $this->mimeDb->findAllMimeTypesByExtension('docx'));
$this->assertArrayNotHasKey(1, $this->mimeDb->findAllMimeTypesByExtension('docx'));
$this->assertEquals("application/vnd.openxmlformats-officedocument.wordprocessingml.document", $this->mimeDb->findAllMimeTypesByExtension('.docx')[0]);

$this->assertNull($this->mimeDb->findAllMimeTypesByExtension('.unknown'));
}

Expand Down

0 comments on commit 7d74539

Please sign in to comment.