diff --git a/tests/phpunit/includes/bootstrap.php b/tests/phpunit/includes/bootstrap.php
index 1450736fd1..2bbe06ac3d 100644
|
a
|
b
|
if ( ! defined( 'WP_DEFAULT_THEME' ) ) {
|
| 65 | 65 | } |
| 66 | 66 | $wp_theme_directories = array( DIR_TESTDATA . '/themedir1' ); |
| 67 | 67 | |
| 68 | | system( WP_PHP_BINARY . ' ' . escapeshellarg( dirname( __FILE__ ) . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite ); |
| | 68 | system( WP_PHP_BINARY . ' ' . escapeshellarg( dirname( __FILE__ ) . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite, $retval ); |
| | 69 | if ( 0 !== $retval ) { |
| | 70 | exit( $retval ); |
| | 71 | } |
| 69 | 72 | |
| 70 | 73 | if ( $multisite ) { |
| 71 | 74 | echo "Running as multisite..." . PHP_EOL; |
diff --git a/tests/phpunit/includes/functions.php b/tests/phpunit/includes/functions.php
index d9872fb541..928fcd912f 100644
|
a
|
b
|
function _wp_die_handler_filter() {
|
| 115 | 115 | return '_wp_die_handler'; |
| 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"; |
| 120 | 124 | echo "Message : $message\n"; |
| … |
… |
function _wp_die_handler_txt( $message, $title, $args ) {
|
| 127 | 131 | } |
| 128 | 132 | } |
| 129 | 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 ); |
| | 145 | } |
| | 146 | |
| 130 | 147 | /** |
| 131 | 148 | * Set a permalink structure. |
| 132 | 149 | * |
diff --git a/tests/phpunit/includes/install.php b/tests/phpunit/includes/install.php
index 38db3ce55a..7317f4e3ef 100644
|
a
|
b
|
tests_reset__SERVER();
|
| 22 | 22 | |
| 23 | 23 | $PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php'; |
| 24 | 24 | |
| | 25 | tests_add_filter( 'wp_die_handler', '_wp_die_handler_filter_exit' ); |
| | 26 | |
| 25 | 27 | require_once ABSPATH . '/wp-settings.php'; |
| 26 | 28 | |
| 27 | 29 | require_once ABSPATH . '/wp-admin/includes/upgrade.php'; |