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


PHP PHPUnit_Framework_TestCase::tearDownAfterClass方法代码示例

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


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

示例1: tearDownAfterClass

 /**
  * {@inheritdoc}
  */
 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     foreach (self::$filesToRemove as $file) {
         unlink($file);
     }
 }
开发者ID:iborodikhin,项目名称:pshard,代码行数:10,代码来源:Test.php

示例2: tearDownAfterClass

 /**
  * {@inheritdoc}
  */
 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     $cmd = sprintf('kill %d', self::$webServerPid);
     exec(escapeshellcmd($cmd));
     self::$webServerPid = null;
 }
开发者ID:lexeo,项目名称:curl,代码行数:10,代码来源:CurlTest.php

示例3: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     if (self::$isGdInstalled) {
         self::$testDir->remove();
     }
     parent::tearDownAfterClass();
 }
开发者ID:bgarrels,项目名称:ebnf,代码行数:7,代码来源:RendererTest.php

示例4: tearDownAfterClass

 /**
  * Clean up afterwards.
  *
  * @return  void
  *
  * @since   12.3
  */
 public static function tearDownAfterClass()
 {
     // Clean up files
     @unlink(__DIR__ . '/data/web-keychain.dat');
     @unlink(__DIR__ . '/data/web-passphrase.dat');
     parent::tearDownAfterClass();
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:14,代码来源:JKeychainTest.php

示例5: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     $fs = new Filesystem();
     foreach (self::$cleanup as $folder) {
         $fs->remove($folder);
     }
 }
开发者ID:blendsdk,项目名称:blendengine,代码行数:8,代码来源:TranslationTest.php

示例6: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     $cacheDir = __DIR__ . "/../../cache/";
     foreach (glob($cacheDir . "*") as $cacheFile) {
         unlink($cacheFile);
     }
 }
开发者ID:cseufert,项目名称:hamle,代码行数:8,代码来源:base.php

示例7: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     //restore the StableUpdate log to previous contents
     if (isset(self::$logContents)) {
         file_put_contents(__DIR__ . '/../../Includes/StableUpdate.log', self::$logContents);
     }
 }
开发者ID:emijrp,项目名称:Peachy,代码行数:8,代码来源:AutoUpdateTest.php

示例8: tearDownAfterClass

 /**
  * 清理测试环境
  */
 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     AppHelper::Instance()->config("APP_CTRL", 'TestControllers1/');
     $CPath = APPPATH . AppHelper::Instance()->config("APP_CTRL");
     rename($CPath, dirname(__FILE__) . "/TestControllers1/");
     unlink(APPPATH . "/temp/testForCmd.text");
 }
开发者ID:BPing,项目名称:PHPCbping,代码行数:11,代码来源:CoreStartUpTest.php

示例9: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     ControlResolver::setAppPath(APPPATH);
     AppHelper::Instance()->config("APP_CTRL", self::$_APP_CTRL);
     AppHelper::Instance()->config("CMD_FILTER", '');
     //恢复默认
 }
开发者ID:BPing,项目名称:PHPCbping,代码行数:8,代码来源:CommandTest.php

示例10: tearDownAfterClass

 /**
  * Delete the workspace if it exists
  *
  * @return void
  */
 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     if (self::$workspacePath) {
         self::cmd('rm -rf ?', null, self::$workspacePath);
         self::$workspacePath = null;
     }
 }
开发者ID:netresearch,项目名称:kite,代码行数:13,代码来源:TestCase.php

示例11: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     if (is_array(self::$comparators)) {
         array_map(array(Factory::getInstance(), 'unregister'), self::$comparators);
         self::$comparators = null;
     }
     parent::tearDownAfterClass();
 }
开发者ID:a-mayer,项目名称:boekkooi-broadway,代码行数:8,代码来源:EventListenerScenarioTestCase.php

示例12: tearDownAfterClass

 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDownAfterClass()
  * @since   1.0
  */
 public static function tearDownAfterClass()
 {
     $pidPath = JPATH_ROOT . '/japplicationdaemontest.pid';
     if (file_exists($pidPath)) {
         unlink($pidPath);
     }
     ini_restore('memory_limit');
     parent::tearDownAfterClass();
 }
开发者ID:beingsane,项目名称:quickcontent,代码行数:17,代码来源:AbstractDaemonApplicationTest.php

示例13: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     $fs = new Filesystem();
     //cleanup
     if ($fs->exists(self::$nonceDir)) {
         $fs->remove(self::$nonceDir);
     }
 }
开发者ID:aml-bendall,项目名称:ExpandAkeneoApi,代码行数:9,代码来源:ProviderTest.php

示例14: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     $dataDir = \OC::$server->getConfig()->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data-autotest');
     self::tearDownAfterClassCleanFileMapper($dataDir);
     self::tearDownAfterClassCleanStorages();
     self::tearDownAfterClassCleanFileCache();
     self::tearDownAfterClassCleanStrayDataFiles($dataDir);
     self::tearDownAfterClassCleanStrayHooks();
     parent::tearDownAfterClass();
 }
开发者ID:adolfo2103,项目名称:hcloudfilem,代码行数:10,代码来源:testcase.php

示例15: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     self::removeDatasets(self::$datasetRegistryTestClass);
     foreach (self::$connectionPoolTestClass as $conn) {
         $conn->disconnect();
     }
     self::$connectionPoolTestClass = array();
     self::$datasetRegistryTestClass = null;
 }
开发者ID:sigma-z,项目名称:dive,代码行数:10,代码来源:TestCase.php


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