Changeset 25 in tests for wp-testlib/utils.php
- Timestamp:
- 09/22/2007 11:45:08 PM (19 years ago)
- File:
-
- 1 edited
-
wp-testlib/utils.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-testlib/utils.php
r24 r25 38 38 $args = func_get_args(); 39 39 $current_action = $wp_actions[count($wp_actions)-1]; 40 $this->events[] = array('tag'=>$current_action, 'args'=>$args); 40 $this->events[] = array('action' => __FUNCTION__, 'tag'=>$current_action, 'args'=>$args); 41 } 42 43 function action2() { 44 global $wp_actions; 45 46 $args = func_get_args(); 47 $current_action = $wp_actions[count($wp_actions)-1]; 48 $this->events[] = array('action' => __FUNCTION__, 'tag'=>$current_action, 'args'=>$args); 49 } 50 51 // return a list of all the actions, tags and args 52 function get_events() { 53 return $this->events; 41 54 } 42 55 … … 56 69 function get_tags() { 57 70 $out = array(); 58 foreach ($this->events as $e) 71 foreach ($this->events as $e) { 59 72 $out[] = $e['tag']; 73 } 60 74 return $out; 61 75 }
Note:
See TracChangeset
for help on using the changeset viewer.