本文整理汇总了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();
}
示例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();
}
示例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();
}
示例4: tearDownAfterClass
public static function tearDownAfterClass()
{
echo 'Doing final teardown...';
parent::tearDownAfterClass();
self::$character->delete();
self::$player->delete();
DB::rollback();
}
示例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();
}
示例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
}
}
示例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();
}
示例8: tearDownAfterClass
public static function tearDownAfterClass()
{
date_default_timezone_set(self::$defaultTimeZone);
parent::tearDownAfterClass();
}
示例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();
}
示例10: tearDownAfterClass
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
static::$_client->webspace()->delete('id', static::$_webspace->id);
}
示例11: tearDownAfterClass
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
}
示例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();
}
示例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();
}