本文整理匯總了PHP中yiiunit\TestCase::tearDown方法的典型用法代碼示例。如果您正苦於以下問題:PHP TestCase::tearDown方法的具體用法?PHP TestCase::tearDown怎麽用?PHP TestCase::tearDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類yiiunit\TestCase
的用法示例。
在下文中一共展示了TestCase::tearDown方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: tearDown
protected function tearDown()
{
if (is_dir($this->tmpPath)) {
FileHelper::removeDirectory($this->tmpPath);
}
parent::tearDown();
}
示例2: tearDown
public function tearDown()
{
@unlink(Yii::getAlias('@runtime/faker/user.php'));
@unlink(Yii::getAlias('@runtime/faker/profile.php'));
@unlink(Yii::getAlias('@runtime/faker/book.php'));
parent::tearDown();
}
示例3: tearDown
public function tearDown()
{
m::close();
// The mockWebApplication is called after a mock has been already set to the container
// So we need to manually clear that.
Yii::$container->clear(AlgoliaFactory::class);
parent::tearDown();
}
示例4: tearDown
protected function tearDown()
{
parent::tearDown();
self::getConnection()->createCommand()->truncateTable(self::$logTable)->execute();
}
示例5: tearDown
protected function tearDown()
{
parent::tearDown();
IntlTestHelper::resetIntlStatus();
$this->formatter = null;
}
示例6: tearDown
protected function tearDown()
{
$this->_fixtureController = null;
FixtureStorage::clear();
parent::tearDown();
}
示例7: tearDown
protected function tearDown()
{
parent::tearDown();
IntlTestHelper::resetIntlStatus();
}
示例8: tearDown
protected function tearDown()
{
parent::tearDown();
FileHelper::removeDirectory(Yii::getAlias('@runtime/assets'));
FileHelper::removeDirectory(Yii::getAlias('@runtime/Smarty'));
}
示例9: tearDown
protected function tearDown()
{
parent::tearDown();
$this->formatter = null;
}
示例10: tearDown
public function tearDown()
{
Yii::$app->getDb()->close();
parent::tearDown();
}
示例11: tearDown
protected function tearDown()
{
parent::tearDown();
$this->object = null;
}
示例12: tearDown
public function tearDown()
{
m::close();
parent::tearDown();
}
示例13: tearDown
protected function tearDown()
{
parent::tearDown();
Yii::$aliases = $this->aliases;
}
示例14: tearDown
public function tearDown()
{
$this->tearDownMigrationPath();
parent::tearDown();
}
示例15: tearDown
protected function tearDown()
{
parent::tearDown();
$this->component = null;
}