Make WordPress Core


Ignore:
Timestamp:
02/26/2016 02:08:47 AM (9 years ago)
Author:
johnbillion
Message:

Remove (or at least reduce) the need to reset common $_SERVER variables before assertions or between tests, by introducing a method which automatically resets them during test setup.

See #35954

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/multisite/site.php

    r35446 r36721  
    10281028        $is_ssl  = is_ssl();
    10291029        $address = parse_url( get_blogaddress_by_id( $blog ), PHP_URL_SCHEME );
    1030 
    1031         unset( $_SERVER['HTTPS'] );
    10321030
    10331031        $this->assertTrue( $is_ssl );
Note: See TracChangeset for help on using the changeset viewer.