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


PHP TestCase::tearDownAfterClass方法代码示例

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


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

示例1: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     \OC_User::deleteUser(self::TEST_ENCRYPTION_MIGRATION_USER1);
     \OC_User::deleteUser(self::TEST_ENCRYPTION_MIGRATION_USER2);
     \OC_User::deleteUser(self::TEST_ENCRYPTION_MIGRATION_USER3);
     parent::tearDownAfterClass();
 }
开发者ID:yheric455042,项目名称:owncloud82,代码行数:7,代码来源:migration.php

示例2: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup test user
     \OC_User::deleteUser(self::TEST_ENCRYPTION_TRASHBIN_USER1);
     \OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
     parent::tearDownAfterClass();
 }
开发者ID:samj1912,项目名称:repo,代码行数:7,代码来源:trashbin.php

示例3: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup test user
     \OC_User::deleteUser(self::TEST_ENCRYPTION_HOOKS_USER1);
     \OC_User::deleteUser(self::TEST_ENCRYPTION_HOOKS_USER2);
     parent::tearDownAfterClass();
 }
开发者ID:samj1912,项目名称:repo,代码行数:7,代码来源:hooks.php

示例4: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     echo 'Doing final teardown...';
     parent::tearDownAfterClass();
     self::$character->delete();
     self::$player->delete();
     DB::rollback();
 }
开发者ID:AcceptableIce,项目名称:Larp3,代码行数:8,代码来源:GeneratorTest.php

示例5: tearDownAfterClass

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

示例6: tearDownAfterClass

 /** @inheritdoc */
 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     //  Clean up: remove directory created for testing
     try {
         Disk::deleteTree(Disk::path([dirname(dirname(__DIR__)), 'storage', 'mount-test']));
     } catch (\Exception $_ex) {
         //  Ignored
     }
 }
开发者ID:rajeshpillai,项目名称:dfe-console,代码行数:11,代码来源:MountTest.php

示例7: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     \OC_FileProxy::$enabled = true;
     // cleanup test user
     \OC_User::deleteUser(self::TEST_USER);
     // reset app files_trashbin
     if (self::$stateFilesTrashbin) {
         \OC_App::enable('files_trashbin');
     }
     parent::tearDownAfterClass();
 }
开发者ID:samj1912,项目名称:repo,代码行数:11,代码来源:keymanager.php

示例8: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     date_default_timezone_set(self::$defaultTimeZone);
     parent::tearDownAfterClass();
 }
开发者ID:stweil,项目名称:owncloud-core,代码行数:5,代码来源:datetimeformatter.php

示例9: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup test user
     \OC_User::deleteUser(self::TEST_ENCRYPTION_UTIL_USER1);
     \OC_User::deleteUser(self::TEST_ENCRYPTION_UTIL_USER2);
     \OC_User::deleteUser(self::TEST_ENCRYPTION_UTIL_LEGACY_USER);
     //cleanup groups
     \OC_Group::deleteGroup(self::TEST_ENCRYPTION_UTIL_GROUP1);
     \OC_Group::deleteGroup(self::TEST_ENCRYPTION_UTIL_GROUP2);
     parent::tearDownAfterClass();
 }
开发者ID:yheric455042,项目名称:owncloud82,代码行数:11,代码来源:util.php

示例10: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     static::$_client->webspace()->delete('id', static::$_webspace->id);
 }
开发者ID:plesk,项目名称:api-php-lib,代码行数:5,代码来源:DatabaseTest.php

示例11: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
 }
开发者ID:riso,项目名称:owncloud-core,代码行数:4,代码来源:helper.php

示例12: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // clean group
     \OC_Group::deleteGroup(self::TEST_ENCRYPTION_SHARE_GROUP1);
     // cleanup users
     \OC_User::deleteUser(self::TEST_ENCRYPTION_SHARE_USER1);
     \OC_User::deleteUser(self::TEST_ENCRYPTION_SHARE_USER2);
     \OC_User::deleteUser(self::TEST_ENCRYPTION_SHARE_USER3);
     \OC_User::deleteUser(self::TEST_ENCRYPTION_SHARE_USER4);
     parent::tearDownAfterClass();
 }
开发者ID:yheric455042,项目名称:owncloud82,代码行数:11,代码来源:share.php

示例13: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     $accountStoreMappings = self::$application->accountStoreMappings;
     if ($accountStoreMappings) {
         foreach ($accountStoreMappings as $asm) {
             $accountStore = $asm->accountStore;
             $asm->delete();
             $accountStore->delete();
         }
     }
     self::$application->delete();
     self::$client = null;
     self::$application = null;
     self::$account = null;
     parent::tearDownAfterClass();
 }
开发者ID:stormpath,项目名称:stormpath-laravel-auth-driver,代码行数:16,代码来源:StormpathUserProviderTest.php


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