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