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


PHP ZurmoBaseTest::tearDownAfterClass方法代码示例

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


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

示例1: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     $contents = file_get_contents(INSTANCE_ROOT . '/protected/config/perInstanceTest.php');
     $contents = preg_replace('/\\$maintenanceMode\\s*=\\s*true;/', '$maintenanceMode = false;', $contents);
     file_put_contents(INSTANCE_ROOT . '/protected/config/perInstanceTest.php', $contents);
     parent::tearDownAfterClass();
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:7,代码来源:DatabaseCommandTest.php

示例2: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     $contents = file_get_contents(static::$perInstanceTestFilePath);
     $contents = preg_replace('/\\$maintenanceMode\\s*=\\s*true;/', '$maintenanceMode = false;', $contents);
     file_put_contents(static::$perInstanceTestFilePath, $contents);
     parent::tearDownAfterClass();
 }
开发者ID:KulturedKitsch,项目名称:kulturedkitsch.info,代码行数:7,代码来源:SetMaintenanceModeCommandTest.php

示例3: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     ZurmoRedBean::$writer->dropTableByTableName('testimporttable');
     ZurmoRedBean::$writer->dropTableByTableName('testimporttable2');
     ZurmoRedBean::$writer->dropTableByTableName('testimporttable3');
     ZurmoRedBean::$writer->dropTableByTableName('testimporttable4');
     parent::tearDownAfterClass();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:8,代码来源:ImportBaseTest.php

示例4: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     R::exec('drop table if exists testimporttable');
     R::exec('drop table if exists testimporttable2');
     R::exec('drop table if exists testimporttable3');
     R::exec('drop table if exists testimporttable4');
     parent::tearDownAfterClass();
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:8,代码来源:ImportBaseTest.php

示例5: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     $_FILES = null;
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:5,代码来源:FileModelDisplayUtilTest.php

示例6: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     $imap = new ZurmoImap();
     $imap->imapHost = Yii::app()->params['emailTestAccounts']['userImapSettings']['imapHost'];
     $imap->imapUsername = Yii::app()->params['emailTestAccounts']['userImapSettings']['imapUsername'];
     $imap->imapPassword = Yii::app()->params['emailTestAccounts']['userImapSettings']['imapPassword'];
     $imap->imapPort = Yii::app()->params['emailTestAccounts']['userImapSettings']['imapPort'];
     $imap->imapSSL = Yii::app()->params['emailTestAccounts']['userImapSettings']['imapSSL'];
     $imap->imapFolder = Yii::app()->params['emailTestAccounts']['userImapSettings']['imapFolder'];
     $imap->init();
     $imap->connect();
     $imap->deleteMessages(true);
     Yii::app()->emailHelper->sendEmailThroughTransport = self::$emailHelperSendEmailThroughTransport;
     parent::tearDownAfterClass();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:15,代码来源:EmailHelperTest.php

示例7: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     EmailMessageTestHelper::purgeAllMessages();
     Yii::app()->emailHelper->sendEmailThroughTransport = self::$emailHelperSendEmailThroughTransport;
     parent::tearDownAfterClass();
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:6,代码来源:ZurmoImapTest.php

示例8: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     Yii::app()->readPermissionSubscriptionObserver->enabled = false;
     parent::tearDownAfterClass();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:5,代码来源:ReadPermissionSubscriptionObserverTest.php

示例9: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     Yii::app()->gameHelper->unmuteScoringModelsOnSave();
     parent::tearDownAfterClass();
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:5,代码来源:AutoBuildDatabaseTest.php

示例10: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     Yii::app()->emailHelper->sendEmailThroughTransport = self::$emailHelperSendEmailThroughTransport;
     parent::tearDownAfterClass();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:5,代码来源:EmailMessageHelperTest.php

示例11: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     if (self::$freeze) {
         RedBeanDatabase::freeze();
     }
     parent::tearDownAfterClass();
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:7,代码来源:WorkflowMergeTagsUtilTest.php

示例12: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     RedBeanColumnTypeOptimizer::$optimizedTableColumns = array();
     Yii::app()->gameHelper->unmuteScoringModelsOnSave();
     parent::tearDownAfterClass();
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:6,代码来源:InstallUtilTest.php


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