示例#1
0
 protected function tearDown()
 {
     parent::tearDown();
     if (isset($_SERVER['HTTP_HOST'])) {
         unset($_SERVER['HTTP_HOST']);
     }
 }
示例#2
0
 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  */
 protected function tearDown()
 {
     if (is_array($this->expectedErrors) && !empty($this->expectedErrors)) {
         $this->fail('An expected error was not raised.');
     }
     parent::tearDown();
 }