Ejemplo n.º 1
0
 public function tearDown()
 {
     if ($this->is_driver_active()) {
         $this->driver()->clear();
     }
     if ($this->is_environment_active()) {
         $this->environment()->restore();
     }
     if (in_array($this->driver_type(), array('kohana', 'simple'))) {
         Functest_Tests::rollback_transaction();
     } else {
         Functest_Tests::load_fixtures();
     }
     parent::tearDown();
 }
Ejemplo n.º 2
0
 public function tearDown()
 {
     Database::instance()->rollback();
     $this->env->restore();
     parent::tearDown();
 }