예제 #1
0
파일: Functions.php 프로젝트: lloc/wp_mock
 /**
  * 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');
     }
 }
예제 #2
0
function unsetRealpath()
{
    Patchwork\undoAll();
}