function _clean_up() { parent::_clean_up(); fs::rm(MEDIA_DIR); $this->db->sql_delete('file_object'); $this->db->sql_delete('media'); }
function _clean_up() { fs :: rm(IMAGE_CACHE_DIR); fs :: rm(MEDIA_DIR); }
function test_mkdir_relative_path_no_trailing_slash() { fs :: rm(TEST_DIR_RELATIVE_PATH . '/tmp/'); $this->assertFalse(is_dir(TEST_DIR_RELATIVE_PATH . '/tmp/wow/hey/')); fs :: mkdir(TEST_DIR_RELATIVE_PATH . '/./tmp\../tmp/wow////hey'); $this->assertTrue(is_dir(TEST_DIR_RELATIVE_PATH . '/tmp/wow/hey/')); }