Skip to:
Content

BuddyPress.org

Changeset 10297


Ignore:
Timestamp:
10/22/2015 12:33:18 AM (5 years ago)
Author:
r-a-y
Message:

Unit Tests: Fix resetting of temporary $cached_SERVER_NAME property.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase.php

    r10246 r10297  
    485485        if ( ! empty( self::$cached_SERVER_NAME ) ) {
    486486            $_SERVER['SERVER_NAME'] = self::$cached_SERVER_NAME;
    487             unset( $this->cached_SERVER_NAME );
     487            self::$cached_SERVER_NAME = '';
    488488        } else {
    489489            unset( $_SERVER['SERVER_NAME'] );
Note: See TracChangeset for help on using the changeset viewer.