* @license PHP License * @package WB * @subpackage unittest */ require_once dirname(__FILE__) . '.php'; /** * Unit Test * * Test Mime Type: Image * * @version 0.1.0 * @package WB * @subpackage unittest */ class TestCaseVFSMime_Image extends TestCaseVFSMime { public function testExecuteFlip() { $this->execute('flip', array()); } public function onExcecuted() { } /** * Check whether this file should be importerd * * Do any required check. This ist just to avoid importing useless files * * @param string $file realpath of file * @return bool true to import */ protected function isImportable($file) { $ext = explode('.', $file); $ext = array_pop($ext); switch ($ext) { case 'pcx': case 'bmp': case 'gif': case 'png': case 'jpg': return true; break; default: break; } return false; } } ?>