/** * @param \Codeception\TestCase $test * * @return void */ public function _after(TestCase $test) { parent::_after($test); if (session_status() === PHP_SESSION_ACTIVE) { session_destroy(); } }
/** * @param \Codeception\TestCase $test * * @return void */ public function _after(TestCase $test) { parent::_after($test); Propel::getWriteConnection('zed')->rollBack(); if (session_status() === PHP_SESSION_ACTIVE) { session_destroy(); } }
public function _after(TestCase $test) { foreach ($this->insertedIds as $id) { try { $this->auth0Api->users->delete($id); } catch (\Exception $e) { $this->debug(sprintf('id: "%s" not removed: "%s"', $id, $e->__toString())); } } $this->insertedIds = []; parent::_after($test); }
/** * {@inheritDoc} * @see \Codeception\Module::_after() */ public function _after(TestCase $testCase) { parent::_after($testCase); $this->throwExceptionOnHttpMockError(); $this->diManager->get('httpMockServer')->clean(); }
public function _after(\Codeception\TestCase $test) { $this->populated = false; $this->removeInserted(); parent::_after($test); }
public function _after(\Codeception\TestCase $test) { $this->populated = false; $this->removeInserted(); if ($this->config['reconnect']) { $this->disconnect(); } parent::_after($test); }
public function _after(TestCase $test) { $this->debug(__CLASS__ . '::' . __FUNCTION__ . '()'); $unfinished_transaction = $this->transaction_level > 0; if ($unfinished_transaction) { $this->debug("Unfinished transaction was found; rolling back (after test '{$test->getName(false)}')"); // wrap up the transaction so that the clean-up below can succeed. // it is not possible to switch connectors mid-transaction. $this->rollbackTransaction(); } foreach ($this->test_cleanup_actions as $cleanup_action) { $this->debugSection('cleanup', $cleanup_action->getDefinition()); call_user_func($cleanup_action, $this); } if ($unfinished_transaction) { $this->fail("Unfinished transaction was found (after test '{$test->getName(false)}')"); } $this->test_cleanup_actions = []; parent::_after($test); }
/** * @param TestCase $testcase */ public function _after(TestCase $testcase) { $this->unloadFixtures(); parent::_after($testcase); }
/** * @param TestCase $testcase */ public function _after(TestCase $testcase) { Test::clean(); parent::_after($testcase); }
/** * {@inheritDoc} * @see \Codeception\Module::_after() */ public function _after(TestCase $testCase) { parent::_after($testCase); }
public function _after(TestInterface $test) { parent::_after($test); }
/** * @param Cept $cept */ public function _after(Cept $cept) { $this->unloadFixtures(); parent::_after($cept); }
public function _after(TestInterface $test) { $this->populated = false; $this->removeInserted(); if ($this->config['reconnect']) { $this->disconnect(); } parent::_after($test); }
public function _after(TestCase $test) { $this->debug(__CLASS__ . '::_after [' . $test->getName() . ']'); $this->deinitSignalHandler(); parent::_after($test); }
/** * After test case hook * * @param TestCase $test test * * @return void */ public function _after(TestCase $test) { parent::_after($test); $this->module->_after($test); }
public function _after(\Codeception\TestCase $test) { parent::_after($test); }
/** * Code to run after each test * * @param TestInterface $test */ public function _after(TestInterface $test) { if ($this->config['reconnect']) { $this->disconnect(); } parent::_after($test); }