assertEquals( Mime::detect($test), $output ); } /** * Provider for testDetect * * @return array data for testDetect */ public function providerForTestDetect() { return array( array( 'pma', 'application/octet-stream' ), array( 'GIF', 'image/gif' ), array( "\x89PNG", 'image/png' ), array( chr(0xff) . chr(0xd8), 'image/jpeg' ), ); } }