Changeset 34607
- Timestamp:
- 09/26/2015 10:02:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pluggable.php
r34126 r34607 75 75 public function getDefinedPluggableFunctions() { 76 76 77 preg_match_all( '#^function (\w+)#m', file_get_contents( ABSPATH . '/wp-includes/pluggable.php' ), $functions ); 78 77 $test_files = array( 78 'wp-includes/pluggable.php', 79 'wp-includes/cache.php', 80 ); 79 81 $data = array(); 80 82 81 foreach ( $functions[1] as $function ) { 82 $data[] = array( 83 $function, 84 ); 83 foreach ( $test_files as $file ) { 84 preg_match_all( '#^function (\w+)#m', file_get_contents( ABSPATH . '/' . $file ), $functions ); 85 86 foreach ( $functions[1] as $function ) { 87 $data[] = array( 88 $function 89 ); 90 } 85 91 } 86 92 … … 97 103 98 104 return array( 105 106 // wp-includes/pluggable.php: 99 107 'wp_set_current_user' => array( 'id', 'name' => '' ), 100 108 'wp_get_current_user' => array(), … … 136 144 'get_avatar' => array( 'id_or_email', 'size' => 96, 'default' => '', 'alt' => '', 'args' => null ), 137 145 'wp_text_diff' => array( 'left_string', 'right_string', 'args' => null ), 146 147 // wp-includes/cache.php: 148 'wp_cache_add' => array( 'key', 'data', 'group' => '', 'expire' => 0 ), 149 'wp_cache_close' => array(), 150 'wp_cache_decr' => array( 'key', 'offset' => 1, 'group' => '' ), 151 'wp_cache_delete' => array( 'key', 'group' => '' ), 152 'wp_cache_flush' => array(), 153 'wp_cache_get' => array( 'key', 'group' => '', 'force' => false, 'found' => null ), 154 'wp_cache_incr' => array( 'key', 'offset' => 1, 'group' => '' ), 155 'wp_cache_init' => array(), 156 'wp_cache_replace' => array( 'key', 'data', 'group' => '', 'expire' => 0 ), 157 'wp_cache_set' => array( 'key', 'data', 'group' => '', 'expire' => 0 ), 158 'wp_cache_switch_to_blog' => array( 'blog_id' ), 159 'wp_cache_add_global_groups' => array( 'groups' ), 160 'wp_cache_add_non_persistent_groups' => array( 'groups' ), 161 'wp_cache_reset' => array(), 162 138 163 ); 139 164
Note: See TracChangeset
for help on using the changeset viewer.