diff options
Diffstat (limited to 'tests/phpunit/includes/install.php')
-rw-r--r-- | tests/phpunit/includes/install.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/phpunit/includes/install.php b/tests/phpunit/includes/install.php index 45c0d60f83..9400b6966c 100644 --- a/tests/phpunit/includes/install.php +++ b/tests/phpunit/includes/install.php @@ -20,7 +20,9 @@ if ( ! defined( 'WP_DEFAULT_THEME' ) ) { tests_reset__SERVER(); -$PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php'; +$PHP_SELF = '/index.php'; +$GLOBALS['PHP_SELF'] = '/index.php'; +$_SERVER['PHP_SELF'] = '/index.php'; tests_add_filter( 'wp_die_handler', '_wp_die_handler_filter_exit' ); |