Changeset 42343 for trunk/tests/phpunit/tests/hooks/iterator.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/hooks/iterator.php
r42200 r42343 9 9 10 10 public function test_foreach() { 11 $callback_one = '__return_null';12 $callback_two = '__return_false';13 $hook = new WP_Hook();14 $tag = __FUNCTION__;15 $priority = rand( 1, 100 );11 $callback_one = '__return_null'; 12 $callback_two = '__return_false'; 13 $hook = new WP_Hook(); 14 $tag = __FUNCTION__; 15 $priority = rand( 1, 100 ); 16 16 $accepted_args = rand( 1, 100 ); 17 17 … … 19 19 $hook->add_filter( $tag, $callback_two, $priority + 1, $accepted_args ); 20 20 21 $functions = array();21 $functions = array(); 22 22 $priorities = array(); 23 23 foreach ( $hook as $key => $callbacks ) {
Note: See TracChangeset
for help on using the changeset viewer.