Пример #1
0
 public function tearDown()
 {
     $_SERVER['HTTP_HOST'] = $this->http_host;
     $_SERVER['SERVER_PORT'] = $this->server_port;
     $_SERVER['REQUEST_URI'] = $this->request_uri;
     parent::tearDown();
 }
Пример #2
0
 public function tearDown()
 {
     parent::tearDown();
     $this->set_current_user($this->old_current_user);
 }
Пример #3
0
 /**
  * Tear down globals set up in setUp_wp_mail()
  */
 public static function tearDown_wp_mail($args)
 {
     if (!empty(self::$cached_SERVER_NAME)) {
         $_SERVER['SERVER_NAME'] = self::$cached_SERVER_NAME;
         self::$cached_SERVER_NAME = '';
     } else {
         unset($_SERVER['SERVER_NAME']);
     }
     // passthrough
     return $args;
 }