/** * Emptys the mocked_functions array */ public function flush() { $this->mocked_functions = array(); Handler::cleanup(); $this->patchwork_functions = array(); if (function_exists('Patchwork\\undoAll')) { \Patchwork\undoAll(); } if (empty(self::$wp_mocked_functions)) { self::$wp_mocked_functions = array('add_action', 'do_action', 'add_filter', 'apply_filters'); } }
function unsetRealpath() { Patchwork\undoAll(); }