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(); }
public function tearDown() { Database::instance()->rollback(); $this->env->restore(); parent::tearDown(); }