Changeset 36721 for trunk/tests/phpunit/includes/functions.php
- Timestamp:
- 02/26/2016 02:08:47 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/functions.php
r36715 r36721 4 4 * Resets various `$_SERVER` variables that can get altered during tests. 5 5 */ 6 function tests_reset_ SERVER() {6 function tests_reset__SERVER() { 7 7 $_SERVER['HTTP_HOST'] = WP_TESTS_DOMAIN; 8 8 $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; 9 9 $_SERVER['REQUEST_METHOD'] = 'GET'; 10 $_SERVER['REQUEST_URI'] = ''; 10 11 $_SERVER['SERVER_NAME'] = WP_TESTS_DOMAIN; 11 12 $_SERVER['SERVER_PORT'] = '80';
Note: See TracChangeset
for help on using the changeset viewer.