示例#1
0
 /**
  * @param \Codeception\TestCase $test
  *
  * @return void
  */
 public function _after(TestCase $test)
 {
     parent::_after($test);
     if (session_status() === PHP_SESSION_ACTIVE) {
         session_destroy();
     }
 }
示例#2
0
 /**
  * @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();
 }
示例#5
0
 public function _after(\Codeception\TestCase $test)
 {
     $this->populated = false;
     $this->removeInserted();
     parent::_after($test);
 }
示例#6
0
 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);
 }
示例#8
0
 /**
  * @param TestCase $testcase
  */
 public function _after(TestCase $testcase)
 {
     $this->unloadFixtures();
     parent::_after($testcase);
 }
示例#9
0
 /**
  * @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);
 }
示例#11
0
 public function _after(TestInterface $test)
 {
     parent::_after($test);
 }
示例#12
0
 /**
  * @param Cept $cept
  */
 public function _after(Cept $cept)
 {
     $this->unloadFixtures();
     parent::_after($cept);
 }
示例#13
0
 public function _after(TestInterface $test)
 {
     $this->populated = false;
     $this->removeInserted();
     if ($this->config['reconnect']) {
         $this->disconnect();
     }
     parent::_after($test);
 }
示例#14
0
 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);
 }
示例#16
0
 public function _after(\Codeception\TestCase $test)
 {
     parent::_after($test);
 }
示例#17
0
 /**
  * Code to run after each test
  *
  * @param TestInterface $test
  */
 public function _after(TestInterface $test)
 {
     if ($this->config['reconnect']) {
         $this->disconnect();
     }
     parent::_after($test);
 }