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


PHP PHPUnit_Framework_TestCase::tearDown方法代码示例

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


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

示例1: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     /** @var ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject $objectManagerMock*/
     $objectManagerMock = $this->getMock('Magento\\Framework\\ObjectManagerInterface');
     \Magento\Framework\App\ObjectManager::setInstance($objectManagerMock);
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:7,代码来源:BackendTemplateTest.php

示例2: tearDown

 protected function tearDown()
 {
     $this->serializer = null;
     $this->nativeArrayGateway = null;
     $this->nativeObjectGateway = null;
     parent::tearDown();
 }
开发者ID:thebennos,项目名称:php-client,代码行数:7,代码来源:BulkResponseTest.php

示例3: tearDown

 /**
  * Tear down process run after tests
  * @return void
  */
 protected function tearDown()
 {
     parent::tearDown();
     if ($this->entityManager != null) {
         $this->entityManager->getConnection()->close();
     }
 }
开发者ID:51systems,项目名称:doctrine-test,代码行数:11,代码来源:EntityTestCase.php

示例4: tearDown

 protected function tearDown()
 {
     $this->generator = null;
     $this->wordlist = null;
     $this->roller = null;
     parent::tearDown();
 }
开发者ID:KasaiDot,项目名称:php-diceware,代码行数:7,代码来源:PassphraseGeneratorTest.php

示例5: tearDown

 public function tearDown()
 {
     parent::tearDown();
     foreach (FakePaginatorModel::find() as $robot) {
         $robot->delete();
     }
 }
开发者ID:arius86,项目名称:core,代码行数:7,代码来源:AggregateMongoTest.php

示例6: tearDown

 protected function tearDown()
 {
     unset($this->_coreAuthorization);
     unset($this->_helperMock);
     unset($this->_webapiAuthorization);
     parent::tearDown();
 }
开发者ID:,项目名称:,代码行数:7,代码来源:

示例7: tearDown

 protected function tearDown()
 {
     foreach ($this->getTemplateNames() as $template) {
         $config = $this->_includeConfig($template);
         $file = $config['dist-installer-params']['file'];
         switch ($template) {
             case 'overwrite':
                 $oldFile = $file . '.old';
                 @copy($oldFile, $file);
                 @unlink($oldFile);
                 break;
             case 'createdir':
                 @unlink($file);
                 @rmdir(dirname($file));
                 break;
             case 'no-overwrite':
                 break;
             default:
                 @unlink($file);
                 break;
         }
     }
     foreach ($this->environmentBackup as $var => $value) {
         if (false === $value) {
             putenv($var);
         } else {
             putenv($var . '=' . $value);
         }
     }
     parent::tearDown();
 }
开发者ID:vincentlepot,项目名称:composer-dist-installer,代码行数:31,代码来源:GenericTest.php

示例8: tearDown

 public function tearDown()
 {
     $this->jobQueue = null;
     $this->scheduler = null;
     $this->beanstalk = null;
     parent::tearDown();
 }
开发者ID:phlib,项目名称:jobqueue,代码行数:7,代码来源:JobQueueTest.php

示例9: tearDown

 protected function tearDown()
 {
     if ($this->loader instanceof \Teknoo\States\Loader\LoaderInterface) {
         spl_autoload_unregister(array($this->loader, 'loadClass'));
     }
     parent::tearDown();
 }
开发者ID:unialteri,项目名称:states,代码行数:7,代码来源:BootstrapTest.php

示例10: tearDown

 public function tearDown()
 {
     if ($this->resource !== null) {
         fclose($this->resource);
     }
     parent::tearDown();
 }
开发者ID:phpfont,项目名称:binary,代码行数:7,代码来源:UInt32Test.php

示例11: tearDown

 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.6
  */
 protected function tearDown()
 {
     unset($this->object);
     unset($this->safeObject);
     unset($this->safeObjectArrayTest);
     parent::tearDown();
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:15,代码来源:JFilterOutputTest.php

示例12: tearDown

 public function tearDown()
 {
     parent::tearDown();
     if ($this->cwd) {
         $this->filesystem->remove($this->cwd);
     }
 }
开发者ID:netresearch,项目名称:composer-installers,代码行数:7,代码来源:TestCase.php

示例13: tearDown

 function tearDown()
 {
     parent::tearDown();
     if (defined('IS_WPCOM') && IS_WPCOM) {
         restore_current_blog();
     }
 }
开发者ID:iamtakashi,项目名称:jetpack,代码行数:7,代码来源:test_interface.jetpack-sync-replicastore.php

示例14: tearDown

 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @return void
  */
 protected function tearDown()
 {
     JFolder::delete(JPATH_TESTS . '/tmp/language');
     unset($this->object);
     unset($this->inspector);
     parent::tearDown();
 }
开发者ID:eshiol,项目名称:joomla-cms,代码行数:13,代码来源:JLanguageTest.php

示例15: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     $this->_instance->reset();
     $this->_instance = null;
     @unlink($this->_file);
 }
开发者ID:andrey-yantsen,项目名称:mixpanel-php,代码行数:7,代码来源:MixpanelBaseProducerTest.php


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