function testCheckMimeType() { $http = new HttpHeader(); $this->assertTrue($http->checkMimeType('audio/mpeg', 'file')); $this->assertTrue($http->checkMimeType('image/png', 'img')); $this->assertTrue($http->checkMimeType('text/html', 'html')); $this->assertFalse($http->checkMimeType('image/png', 'html')); }