Changeset 1221 in tests for trunk/includes/testcase.php
- Timestamp:
- 02/28/2013 04:30:21 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/testcase.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/testcase.php
r1127 r1221 19 19 $this->clean_up_global_scope(); 20 20 $this->start_transaction(); 21 add_filter( 'wp_die_handler', array( $this, 'get_wp_die_handler' ) ); 21 22 } 22 23 … … 26 27 remove_filter( 'dbdelta_create_queries', array( $this, '_create_temporary_tables' ) ); 27 28 remove_filter( 'query', array( $this, '_drop_temporary_tables' ) ); 29 remove_filter( 'wp_die_handler', array( $this, 'get_wp_die_handler' ) ); 28 30 } 29 31 … … 62 64 return 'DROP TEMPORARY TABLE ' . substr( $query, 10 ); 63 65 return $query; 66 } 67 68 function get_wp_die_handler( $handler ) { 69 return array( $this, 'wp_die_handler' ); 70 } 71 72 function wp_die_handler( $message ) { 73 throw new WPDieException( $message ); 64 74 } 65 75
Note: See TracChangeset
for help on using the changeset viewer.