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


PHP UnitTestCase::tearDown方法代码示例

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


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

示例1: tearDown

 /**
  * Tears down this test case.
  */
 protected function tearDown()
 {
     parent::tearDown();
     unset($this->elementProphecy);
     unset($this->objectManagerProphecy);
     unset($this->controllerContextProphecy);
 }
开发者ID:rickymathew,项目名称:TYPO3.CMS,代码行数:10,代码来源:PostProcessorTest.php

示例2: tearDown

 protected function tearDown()
 {
     if (!empty($this->extension) && $this->extension->getExtensionKey() != null) {
         GeneralUtility::rmdir($this->extension->getExtensionDir(), true);
     }
     parent::tearDown();
 }
开发者ID:TYPO3,项目名称:extension_builder,代码行数:7,代码来源:BaseUnitTest.php

示例3: tearDown

 /**
  * Explicitly clean up the indexer object to prevent any memory leaks
  */
 public function tearDown()
 {
     if ($this->temporaryFileName) {
         @unlink($this->temporaryFileName);
     }
     parent::tearDown();
 }
开发者ID:samuweiss,项目名称:TYPO3-Site,代码行数:10,代码来源:IndexerTest.php

示例4: tearDown

 /**
  * @return void
  */
 public function tearDown()
 {
     foreach ($this->fakedExtensions as $extension => $dummy) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::rmdir(PATH_site . 'typo3temp/' . $extension, TRUE);
     }
     parent::tearDown();
 }
开发者ID:samuweiss,项目名称:TYPO3-Site,代码行数:10,代码来源:InstallUtilityTest.php

示例5: tearDown

 /**
  * Tear down test case
  */
 public function tearDown()
 {
     foreach ($this->testFilesToDelete as $absoluteFileName) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::unlink_tempfile($absoluteFileName);
     }
     parent::tearDown();
 }
开发者ID:samuweiss,项目名称:TYPO3-Site,代码行数:10,代码来源:ConfigurationManagerTest.php

示例6: tearDown

 /**
  * @return void
  */
 protected function tearDown()
 {
     foreach ($this->fakedExtensions as $fakeExtkey => $fakeExtension) {
         $this->testFilesToDelete[] = PATH_site . 'typo3temp/' . $fakeExtkey;
     }
     parent::tearDown();
 }
开发者ID:rickymathew,项目名称:TYPO3.CMS,代码行数:10,代码来源:InstallUtilityTest.php

示例7: tearDown

 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     // Restore locallangXMLOverride and localization format priority
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride'] = $this->locallangXMLOverride;
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['format']['priority'] = $this->l10nPriority;
     \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Localization\LanguageStore::class)->initialize();
     parent::tearDown();
 }
开发者ID:plan2net,项目名称:TYPO3.CMS,代码行数:11,代码来源:XliffParserTest.php

示例8: tearDown

 protected function tearDown()
 {
     \TYPO3\CMS\Core\Utility\GeneralUtility::resetSingletonInstances($this->singletonInstances);
     foreach ($this->filesCreated as $file) {
         unlink($file);
     }
     parent::tearDown();
 }
开发者ID:rickymathew,项目名称:TYPO3.CMS,代码行数:8,代码来源:ResourceFactoryTest.php

示例9: tearDown

 protected function tearDown()
 {
     foreach ($this->backupLocales as $category => $locale) {
         setlocale(constant($category), $locale);
     }
     date_default_timezone_set($this->timezone);
     parent::tearDown();
 }
开发者ID:vip3out,项目名称:TYPO3.CMS,代码行数:8,代码来源:DateViewHelperTest.php

示例10: tearDown

 /**
  * Tear down
  *
  * @return void
  */
 protected function tearDown()
 {
     ExtensionManagementUtility::setPackageManager($this->backupPackageManager);
     if (file_exists(PATH_site . 'typo3temp/ExtensionCompatibilityTester.txt')) {
         unlink(PATH_site . 'typo3temp/ExtensionCompatibilityTester.txt');
     }
     parent::tearDown();
 }
开发者ID:rickymathew,项目名称:TYPO3.CMS,代码行数:13,代码来源:ExtensionCompatibilityTesterTest.php

示例11: tearDown

 public function tearDown()
 {
     Utility\GeneralUtility::resetSingletonInstances($this->singletonInstances);
     foreach ($this->testFilesToDelete as $absoluteFileName) {
         Utility\GeneralUtility::rmdir($absoluteFileName, TRUE);
     }
     parent::tearDown();
 }
开发者ID:KarlDennisMatthaei1923,项目名称:PierraaDesign,代码行数:8,代码来源:GeneralUtilityTest.php

示例12: tearDown

 /**
  * Tear down
  */
 public function tearDown()
 {
     foreach ($this->testNodesToDelete as $node) {
         if (\TYPO3\CMS\Core\Utility\GeneralUtility::isFirstPartOfStr($node, PATH_site . 'typo3temp/')) {
             \TYPO3\CMS\Core\Utility\GeneralUtility::rmdir($node, TRUE);
         }
     }
     parent::tearDown();
 }
开发者ID:samuweiss,项目名称:TYPO3-Site,代码行数:12,代码来源:AbstractNodeTest.php

示例13: tearDown

 /**
  * @return void
  */
 public function tearDown()
 {
     foreach ($this->fakedExtensions as $extension => $dummy) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::rmdir(PATH_site . 'typo3conf/ext/' . $extension, TRUE);
     }
     foreach ($this->resourcesToRemove as $resource) {
         if (file_exists($resource) && is_file($resource)) {
             unlink($resource);
         } elseif (file_exists($resource) && is_dir($resource)) {
             rmdir($resource);
         }
     }
     parent::tearDown();
 }
开发者ID:samuweiss,项目名称:TYPO3-Site,代码行数:17,代码来源:FileHandlingUtilityTest.php

示例14: tearDown

 public function tearDown()
 {
     ExtensionManagementUtility::clearExtensionKeyMap();
     foreach ($this->testFilesToDelete as $absoluteFileName) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::unlink_tempfile($absoluteFileName);
     }
     if (file_exists(PATH_site . 'typo3temp/test_ext/')) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::rmdir(PATH_site . 'typo3temp/test_ext/', TRUE);
     }
     ExtensionManagementUtilityAccessibleProxy::setPackageManager($this->backUpPackageManager);
     ExtensionManagementUtilityAccessibleProxy::setCacheManager(NULL);
     $GLOBALS['TYPO3_LOADED_EXT'] = new \TYPO3\CMS\Core\Compatibility\LoadedExtensionsArray($this->backUpPackageManager);
     \TYPO3\CMS\Core\Utility\GeneralUtility::resetSingletonInstances($this->singletonInstances);
     parent::tearDown();
 }
开发者ID:KarlDennisMatthaei1923,项目名称:PierraaDesign,代码行数:15,代码来源:ExtensionManagementUtilityTest.php

示例15: tearDown

 public function tearDown()
 {
     parent::tearDown();
     unset($this->subject, $this->errorRepositoryMock, $this->extensionConfigurationMock, $this->pageCacheMock);
 }
开发者ID:r3h6,项目名称:TYPO3.EXT.error404page,代码行数:5,代码来源:ErrorHandlerTest.php


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