public function testGuessMimeType() { $file = new File($this->root . '/test.gif'); $this->assertEquals('image/gif', $file->guessMimeType()); $file = new File($this->root . '/test'); $this->assertEquals('image/gif', $file->guessMimeType()); $file = new File($this->root . '/other-file.example'); $this->assertEquals('inode/x-empty', $file->guessMimeType()); $file = new File($this->root . '/.unknownextension'); $this->assertEquals('application/octet-stream', $file->guessMimeType()); }