本文整理汇总了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();
}
示例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();
}
示例3: tearDownAfterClass
public static function tearDownAfterClass()
{
ZurmoRedBean::$writer->dropTableByTableName('testimporttable');
ZurmoRedBean::$writer->dropTableByTableName('testimporttable2');
ZurmoRedBean::$writer->dropTableByTableName('testimporttable3');
ZurmoRedBean::$writer->dropTableByTableName('testimporttable4');
parent::tearDownAfterClass();
}
示例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();
}
示例5: tearDownAfterClass
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
$_FILES = null;
}
示例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();
}
示例7: tearDownAfterClass
public static function tearDownAfterClass()
{
EmailMessageTestHelper::purgeAllMessages();
Yii::app()->emailHelper->sendEmailThroughTransport = self::$emailHelperSendEmailThroughTransport;
parent::tearDownAfterClass();
}
示例8: tearDownAfterClass
public static function tearDownAfterClass()
{
Yii::app()->readPermissionSubscriptionObserver->enabled = false;
parent::tearDownAfterClass();
}
示例9: tearDownAfterClass
public static function tearDownAfterClass()
{
Yii::app()->gameHelper->unmuteScoringModelsOnSave();
parent::tearDownAfterClass();
}
示例10: tearDownAfterClass
public static function tearDownAfterClass()
{
Yii::app()->emailHelper->sendEmailThroughTransport = self::$emailHelperSendEmailThroughTransport;
parent::tearDownAfterClass();
}
示例11: tearDownAfterClass
public static function tearDownAfterClass()
{
if (self::$freeze) {
RedBeanDatabase::freeze();
}
parent::tearDownAfterClass();
}
示例12: tearDownAfterClass
public static function tearDownAfterClass()
{
RedBeanColumnTypeOptimizer::$optimizedTableColumns = array();
Yii::app()->gameHelper->unmuteScoringModelsOnSave();
parent::tearDownAfterClass();
}