本文整理汇总了PHP中TestCase::teardown方法的典型用法代码示例。如果您正苦于以下问题:PHP TestCase::teardown方法的具体用法?PHP TestCase::teardown怎么用?PHP TestCase::teardown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestCase
的用法示例。
在下文中一共展示了TestCase::teardown方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: teardown
/**
* Teardown method.
*/
public function teardown()
{
$this->fakePlayersService = null;
$this->fakeMatchesService = null;
$this->service = null;
parent::teardown();
}
示例2: teardown
/**
* Teardown method.
*/
public function teardown()
{
$this->service = null;
$this->fakeUsersRepo = null;
$this->fakePlayersRepo = null;
parent::teardown();
}
示例3: teardown
/**
* Teardown method
*/
public function teardown()
{
$this->repository = null;
parent::teardown();
}
示例4: tearDown
/**
* Method to tear down whatever was set up before the test.
*
* @return void
*
* @since 12.1
*/
protected function tearDown()
{
$this->restoreFactoryState();
parent::teardown();
}
示例5: tearDown
/**
* Method to tear down whatever was set up before the test.
*
* @return void
*
* @since 12.1
*/
protected function tearDown()
{
$this->restoreFactoryState();
unset($this->_instance);
parent::teardown();
}
示例6: tearDown
/**
* Method to tear down whatever was set up before the test.
*
* @return void
*
* @see PHPUnit_Framework_TestCase::tearDown()
* @since 12.3
*/
protected function tearDown()
{
unset($this->_instance);
parent::teardown();
}
示例7: teardown
public function teardown()
{
parent::teardown();
// Restore the original driver when the test is finished
putenv('QUEUE_DRIVER=' . $this->originalDriver);
}