當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Module::_after方法代碼示例

本文整理匯總了PHP中Codeception\Module::_after方法的典型用法代碼示例。如果您正苦於以下問題:PHP Module::_after方法的具體用法?PHP Module::_after怎麽用?PHP Module::_after使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Codeception\Module的用法示例。


在下文中一共展示了Module::_after方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _after

 /**
  * @param \Codeception\TestCase $test
  *
  * @return void
  */
 public function _after(TestCase $test)
 {
     parent::_after($test);
     if (session_status() === PHP_SESSION_ACTIVE) {
         session_destroy();
     }
 }
開發者ID:spryker,項目名稱:Transfer,代碼行數:12,代碼來源:Functional.php

示例2: _after

 /**
  * @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();
     }
 }
開發者ID:spryker,項目名稱:Stock,代碼行數:13,代碼來源:Functional.php

示例3: _after

 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);
 }
開發者ID:RiskioFr,項目名稱:codeception-auth0-module,代碼行數:12,代碼來源:Auth0.php

示例4: _after

 /**
  * {@inheritDoc}
  * @see \Codeception\Module::_after()
  */
 public function _after(TestCase $testCase)
 {
     parent::_after($testCase);
     $this->throwExceptionOnHttpMockError();
     $this->diManager->get('httpMockServer')->clean();
 }
開發者ID:mcustiel,項目名稱:codeception-http-mock,代碼行數:10,代碼來源:HttpMock.php

示例5: _after

 public function _after(\Codeception\TestCase $test)
 {
     $this->populated = false;
     $this->removeInserted();
     parent::_after($test);
 }
開發者ID:lenninsanchez,項目名稱:donadores,代碼行數:6,代碼來源:Db.php

示例6: _after

 public function _after(\Codeception\TestCase $test)
 {
     $this->populated = false;
     $this->removeInserted();
     if ($this->config['reconnect']) {
         $this->disconnect();
     }
     parent::_after($test);
 }
開發者ID:namnv609,項目名稱:Codeception,代碼行數:9,代碼來源:Db.php

示例7: _after

 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);
 }
開發者ID:henrydekap,項目名稱:Codeception-MultiDb,代碼行數:20,代碼來源:MultiDb.php

示例8: _after

 /**
  * @param TestCase $testcase
  */
 public function _after(TestCase $testcase)
 {
     $this->unloadFixtures();
     parent::_after($testcase);
 }
開發者ID:manyoubaby123,項目名稱:imshop,代碼行數:8,代碼來源:FixtureHelperNew.php

示例9: _after

 /**
  * @param TestCase $testcase
  */
 public function _after(TestCase $testcase)
 {
     Test::clean();
     parent::_after($testcase);
 }
開發者ID:manyoubaby123,項目名稱:imshop,代碼行數:8,代碼來源:CodeHelper.php

示例10: _after

 /**
  * {@inheritDoc}
  * @see \Codeception\Module::_after()
  */
 public function _after(TestCase $testCase)
 {
     parent::_after($testCase);
 }
開發者ID:mcustiel,項目名稱:codeception-wiremock-extension,代碼行數:8,代碼來源:WireMock.php

示例11: _after

 public function _after(TestInterface $test)
 {
     parent::_after($test);
 }
開發者ID:foxman209,項目名稱:Codeception,代碼行數:4,代碼來源:Redis.php

示例12: _after

 /**
  * @param Cept $cept
  */
 public function _after(Cept $cept)
 {
     $this->unloadFixtures();
     parent::_after($cept);
 }
開發者ID:ilyar,項目名稱:dektrium-yii2-user,代碼行數:8,代碼來源:FixtureHelper.php

示例13: _after

 public function _after(TestInterface $test)
 {
     $this->populated = false;
     $this->removeInserted();
     if ($this->config['reconnect']) {
         $this->disconnect();
     }
     parent::_after($test);
 }
開發者ID:solutionDrive,項目名稱:Codeception,代碼行數:9,代碼來源:Db.php

示例14: _after

 public function _after(TestCase $test)
 {
     $this->debug(__CLASS__ . '::_after [' . $test->getName() . ']');
     $this->deinitSignalHandler();
     parent::_after($test);
 }
開發者ID:natterbox,項目名稱:codeception-ctrlc,代碼行數:6,代碼來源:CtrlC.php

示例15: _after

 /**
  * After test case hook
  *
  * @param TestCase $test test
  *
  * @return void
  */
 public function _after(TestCase $test)
 {
     parent::_after($test);
     $this->module->_after($test);
 }
開發者ID:aishwarya-murthy,項目名稱:GoEuro-Automation,代碼行數:12,代碼來源:BrowserShimHelper.php


注:本文中的Codeception\Module::_after方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。