當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。