Changeset 41966 for trunk/tests/phpunit/includes/functions.php
- Timestamp:
- 10/21/2017 02:13:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/functions.php
r40263 r41966 116 116 } 117 117 118 function _wp_die_handler_filter_exit() { 119 return '_wp_die_handler_exit'; 120 } 121 118 122 function _wp_die_handler_txt( $message, $title, $args ) { 119 123 echo "\nwp_die called\n"; … … 126 130 } 127 131 } 132 } 133 134 function _wp_die_handler_exit( $message, $title, $args ) { 135 echo "\nwp_die called\n"; 136 echo "Message : $message\n"; 137 echo "Title : $title\n"; 138 if ( ! empty( $args ) ) { 139 echo "Args: \n"; 140 foreach( $args as $k => $v ){ 141 echo "\t $k : $v\n"; 142 } 143 } 144 exit( 1 ); 128 145 } 129 146
Note: See TracChangeset
for help on using the changeset viewer.