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


PHP TestCase::tearDown方法代码示例

本文整理汇总了PHP中Orchestra\Testbench\TestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP TestCase::tearDown方法的具体用法?PHP TestCase::tearDown怎么用?PHP TestCase::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Orchestra\Testbench\TestCase的用法示例。


在下文中一共展示了TestCase::tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: tearDown

 /**
  * Clean up the testing environment before the next test.
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->engine);
     unset($this->ourConfigPath);
     unset($this->bridge);
 }
开发者ID:findbrok,项目名称:laravel-tradeoff-analytics,代码行数:12,代码来源:TestEngine.php

示例2: tearDown

 public function tearDown()
 {
     parent::tearDown();
     if (file_exists($this->testImage)) {
         unlink($this->testImage);
     }
 }
开发者ID:ankitpokhrel,项目名称:laravel-image,代码行数:7,代码来源:TestCase.php

示例3: tearDown

 /**
  * Tear down test.
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->dilemma);
     unset($this->resolution);
     unset($this->map);
 }
开发者ID:findbrok,项目名称:laravel-tradeoff-analytics,代码行数:12,代码来源:TestMap.php

示例4: tearDown

 public function tearDown()
 {
     $customPath = $this->app['path.public'] . '/custom';
     $this->app['config']->set('image.write_path', $customPath);
     Image::deleteManipulated($this->imagePath);
     parent::tearDown();
 }
开发者ID:roosh-t3,项目名称:laravel-image,代码行数:7,代码来源:ImageTestCase.php

示例5: tearDown

 public function tearDown()
 {
     parent::tearDown();
     if ($container = Mockery::getContainer()) {
         $this->addToAssertionCount($container->mockery_getExpectationCount());
     }
     Mockery::close();
 }
开发者ID:bogardo,项目名称:mailgun,代码行数:8,代码来源:MailgunTestCase.php

示例6: tearDown

 public function tearDown()
 {
     \DB::statement("SET FOREIGN_KEY_CHECKS = 0;");
     \DB::statement("drop table if exists tests;");
     \DB::statement("drop table if exists migrations;");
     \DB::statement("SET FOREIGN_KEY_CHECKS = 1;");
     parent::tearDown();
 }
开发者ID:rtmatt,项目名称:import,代码行数:8,代码来源:TestCase.php

示例7: tearDown

 public function tearDown()
 {
     if ($this->useDatabase === true) {
         $this->db->disconnect('testbench');
         $this->tearDownDatabase();
     }
     parent::tearDown();
 }
开发者ID:ngmy,项目名称:eloquent-serialized-lob,代码行数:8,代码来源:TestCase.php

示例8: tearDown

 /**
  * Clean up the testing environment before the next test.
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->problem);
     unset($this->problemColumn);
     unset($this->problemOption);
     unset($this->problemColumnCategoricalRange);
     unset($this->problemColumnDateRange);
     unset($this->problemColumnValueRange);
     unset($this->faker);
 }
开发者ID:findbrok,项目名称:laravel-tradeoff-analytics,代码行数:16,代码来源:TestDataCollection.php

示例9: tearDown

 public function tearDown()
 {
     if ($this->application) {
         $accountStoreMappings = $this->application->accountStoreMappings;
         if ($accountStoreMappings) {
             foreach ($accountStoreMappings as $asm) {
                 $accountStore = $asm->accountStore;
                 $asm->delete();
                 $accountStore->delete();
             }
         }
         $this->application->delete();
         $this->application = null;
     }
     parent::tearDown();
 }
开发者ID:Kryten0807,项目名称:stormpath-laravel,代码行数:16,代码来源:TestCase.php

示例10: tearDown

 /**
  * Tear down environment after tests
  */
 public function tearDown()
 {
     $this->artisan('migrate:rollback', ['--database' => 'sqlite']);
     parent::tearDown();
 }
开发者ID:shinichi81,项目名称:laravel-acl,代码行数:8,代码来源:TestCase.php

示例11: tearDown

 public function tearDown()
 {
     if ($this->file) {
         unlink($this->file);
         //delete the file after each test
     }
     parent::tearDown();
 }
开发者ID:bakgat,项目名称:notos,代码行数:8,代码来源:AssetsManagerTest.php

示例12: tearDown

 public function tearDown()
 {
     $this->server->stop();
     parent::tearDown();
 }
开发者ID:czim,项目名称:hellodialog,代码行数:5,代码来源:TestCase.php

示例13: tearDown

 public function tearDown()
 {
     Mockery::close();
     parent::tearDown();
 }
开发者ID:navneetrai,项目名称:laravel-submitter,代码行数:5,代码来源:SubmissionTest.php

示例14: tearDown

 public function tearDown()
 {
     parent::tearDown();
     m::close();
 }
开发者ID:laravelflare,项目名称:fields,代码行数:5,代码来源:BaseTest.php

示例15: tearDown

 /**
  *
  */
 public function tearDown()
 {
     $this->artisan('migrate:reset', ['--database' => 'testbench']);
     parent::tearDown();
 }
开发者ID:johnrich85,项目名称:eloquent-query-modifier,代码行数:8,代码来源:BaseTest.php


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