public function double_extension() { $this->assertEquals('application/x-tar-gz', MimeType::getByFilename('test.tar.gz')); }
/** * Load an image * * @param peer.URL source * @return string[2] data and contenttype */ public function load($source) { return [FileUtil::getContents(new File($source->getURL())), MimeType::getByFilename($source->getURL())]; }