本文整理汇总了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();
}
}
示例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();
}
}
示例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);
}
示例4: _after
/**
* {@inheritDoc}
* @see \Codeception\Module::_after()
*/
public function _after(TestCase $testCase)
{
parent::_after($testCase);
$this->throwExceptionOnHttpMockError();
$this->diManager->get('httpMockServer')->clean();
}
示例5: _after
public function _after(\Codeception\TestCase $test)
{
$this->populated = false;
$this->removeInserted();
parent::_after($test);
}
示例6: _after
public function _after(\Codeception\TestCase $test)
{
$this->populated = false;
$this->removeInserted();
if ($this->config['reconnect']) {
$this->disconnect();
}
parent::_after($test);
}
示例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);
}
示例8: _after
/**
* @param TestCase $testcase
*/
public function _after(TestCase $testcase)
{
$this->unloadFixtures();
parent::_after($testcase);
}
示例9: _after
/**
* @param TestCase $testcase
*/
public function _after(TestCase $testcase)
{
Test::clean();
parent::_after($testcase);
}
示例10: _after
/**
* {@inheritDoc}
* @see \Codeception\Module::_after()
*/
public function _after(TestCase $testCase)
{
parent::_after($testCase);
}
示例11: _after
public function _after(TestInterface $test)
{
parent::_after($test);
}
示例12: _after
/**
* @param Cept $cept
*/
public function _after(Cept $cept)
{
$this->unloadFixtures();
parent::_after($cept);
}
示例13: _after
public function _after(TestInterface $test)
{
$this->populated = false;
$this->removeInserted();
if ($this->config['reconnect']) {
$this->disconnect();
}
parent::_after($test);
}
示例14: _after
public function _after(TestCase $test)
{
$this->debug(__CLASS__ . '::_after [' . $test->getName() . ']');
$this->deinitSignalHandler();
parent::_after($test);
}
示例15: _after
/**
* After test case hook
*
* @param TestCase $test test
*
* @return void
*/
public function _after(TestCase $test)
{
parent::_after($test);
$this->module->_after($test);
}