Пример #1
0
 /**
  * executed after each test
  */
 protected function _after()
 {
     parent::_after();
     if (PHP_SESSION_ACTIVE == session_status()) {
         session_destroy();
     }
     foreach ($this->sessionConfig as $key => $val) {
         ini_set($key, $val);
     }
 }
Пример #2
0
 /**
  * executed after each test
  */
 protected function _after()
 {
     parent::_after();
     $loaders = spl_autoload_functions();
     if (is_array($loaders)) {
         foreach ($loaders as $loader) {
             spl_autoload_unregister($loader);
         }
     }
     foreach ($this->loaders as $loader) {
         spl_autoload_register($loader);
     }
     set_include_path($this->includePath);
 }