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