当前位置: 首页>>代码示例>>PHP>>正文


PHP TestCase::tearDown方法代码示例

本文整理汇总了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();
 }
开发者ID:howq,项目名称:yii2,代码行数:7,代码来源:AssetConverterTest.php

示例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();
 }
开发者ID:aivavic,项目名称:yii2,代码行数:7,代码来源:FixtureControllerTest.php

示例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();
 }
开发者ID:lordthorzonus,项目名称:yii2-algolia,代码行数:8,代码来源:AlgoliaComponentTest.php

示例4: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     self::getConnection()->createCommand()->truncateTable(self::$logTable)->execute();
 }
开发者ID:howq,项目名称:yii2,代码行数:5,代码来源:DbTargetTest.php

示例5: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     IntlTestHelper::resetIntlStatus();
     $this->formatter = null;
 }
开发者ID:howq,项目名称:yii2,代码行数:6,代码来源:FormatterNumberTest.php

示例6: tearDown

 protected function tearDown()
 {
     $this->_fixtureController = null;
     FixtureStorage::clear();
     parent::tearDown();
 }
开发者ID:aivavic,项目名称:yii2,代码行数:6,代码来源:FixtureControllerTest.php

示例7: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     IntlTestHelper::resetIntlStatus();
 }
开发者ID:howq,项目名称:yii2,代码行数:5,代码来源:FormatConverterTest.php

示例8: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     FileHelper::removeDirectory(Yii::getAlias('@runtime/assets'));
     FileHelper::removeDirectory(Yii::getAlias('@runtime/Smarty'));
 }
开发者ID:glcode,项目名称:yii2-2.0.3-annotated,代码行数:6,代码来源:ViewRendererTest.php

示例9: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     $this->formatter = null;
 }
开发者ID:diiimonn,项目名称:yii2,代码行数:5,代码来源:FormatterTest.php

示例10: tearDown

 public function tearDown()
 {
     Yii::$app->getDb()->close();
     parent::tearDown();
 }
开发者ID:noname007,项目名称:yii2-1,代码行数:5,代码来源:TimestampBehaviorTest.php

示例11: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     $this->object = null;
 }
开发者ID:howq,项目名称:yii2,代码行数:5,代码来源:ObjectTest.php

示例12: tearDown

 public function tearDown()
 {
     m::close();
     parent::tearDown();
 }
开发者ID:lordthorzonus,项目名称:yii2-algolia,代码行数:5,代码来源:SynchronousAutoIndexBehaviorTest.php

示例13: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     Yii::$aliases = $this->aliases;
 }
开发者ID:advance100,项目名称:yunjianyi,代码行数:5,代码来源:BaseYiiTest.php

示例14: tearDown

 public function tearDown()
 {
     $this->tearDownMigrationPath();
     parent::tearDown();
 }
开发者ID:aivavic,项目名称:yii2,代码行数:5,代码来源:MigrateControllerTest.php

示例15: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     $this->component = null;
 }
开发者ID:howq,项目名称:yii2,代码行数:5,代码来源:ComponentTest.php


注:本文中的yiiunit\TestCase::tearDown方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。