本文整理汇总了PHP中AbstractTest类的典型用法代码示例。如果您正苦于以下问题:PHP AbstractTest类的具体用法?PHP AbstractTest怎么用?PHP AbstractTest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AbstractTest类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: runTest
/**
* Run a test and track its results.
*
* @param TestResult $result
* @param $test
*/
protected function runTest(AbstractTest $test, TestResult $result)
{
if (!is_null($this->getPending())) {
$test->setPending($this->getPending());
}
$test->setEventEmitter($this->eventEmitter);
$test->run($result);
}
开发者ID:brianium,项目名称:peridot,代码行数:14,代码来源:Suite.php
示例2: Writeability
public function Writeability()
{
parent::AbstractTest("Required writeable folder", "One of the following folder should be writeable and is not : ");
}
开发者ID:biggtfish,项目名称:cms,代码行数:4,代码来源:test.Writeability.php
示例3: GPC
function GPC()
{
parent::AbstractTest("Magic quotes", "Magic quotes enabled : " . get_magic_quotes_gpc());
}
开发者ID:bloveing,项目名称:openulteo,代码行数:4,代码来源:test.GPC.php
示例4: PHPDomXML
function PHPDomXML()
{
parent::AbstractTest("DOM Xml enabled", "Dom XML is required, you may have to install the php-xml extension.");
}
开发者ID:umbecr,项目名称:camilaframework,代码行数:4,代码来源:test.PHPDomXML.php
示例5: AJXPVersion
function AJXPVersion()
{
parent::AbstractTest("AjaXplorer version", "AJXP version : " . AJXP_VERSION);
}
开发者ID:crodriguezn,项目名称:administrator-files,代码行数:4,代码来源:test.AJXPVersion.php
示例6: PHPVersion
function PHPVersion()
{
parent::AbstractTest("PHP version", "Minimum required version is PHP 5.1.0, PHP 5.2 or higher recommended when using foreign language");
}
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:4,代码来源:test.PHPVersion.php
示例7: PHPLimits
function PHPLimits()
{
parent::AbstractTest("PHP Limits variables", "<b>Testing configs</b>");
}
开发者ID:crodriguezn,项目名称:administrator-files,代码行数:4,代码来源:test.PHPLimits.php
示例8: PHP_OB
public function PHP_OB()
{
parent::AbstractTest("PHP Output Buffer disabled", "You should disable php output_buffering parameter for better performances with Pydio.");
}
开发者ID:biggtfish,项目名称:cms,代码行数:4,代码来源:test.PHP_OB.php
示例9: UsersConfig
public function UsersConfig()
{
parent::AbstractTest("Users Configuration", "Current config for users");
}
开发者ID:biggtfish,项目名称:cms,代码行数:4,代码来源:test.UsersConfig.php
示例10: PHPMCrypt
function PHPMCrypt()
{
parent::AbstractTest("MCrypt enabled", "MCrypt is required for generating publiclets");
}
开发者ID:umbecr,项目名称:camilaframework,代码行数:4,代码来源:test.PHPMCrypt.php
示例11: setUpBeforeClass
public static function setUpBeforeClass()
{
// These tables must exist before the view can be created
\Library\Application::getService('Database\\Table\\ClientsAndGroups')->setSchema();
\Library\Application::getService('Database\\Table\\ClientSystemInfo')->setSchema();
parent::setUpBeforeClass();
}
开发者ID:patrickpreuss,项目名称:Braintacle,代码行数:7,代码来源:ClientsTest.php
示例12: setUp
protected function setUp()
{
parent::setUp();
$this->_result = $this->_test->assert->getResult();
$this->_package = $this->_test->assert->php;
$this->_testFilesDir = dirname(__FILE__) . '/_files';
}
开发者ID:tpc2,项目名称:phprack,代码行数:7,代码来源:LintTest.php
示例13: setUp
protected function setUp()
{
parent::setUp();
$this->groups['groupA'] = uniqid('groupA_');
$this->groups['groupB'] = uniqid('groupB_');
$jobWithGroupA = Mage::getModel('aoe_scheduler/job');
/* @var $jobWithGroupA Aoe_Scheduler_Model_Job */
$jobWithGroupA->setScheduleCronExpr('always');
$jobWithGroupA->setJobCode(uniqid('t_job_'));
$jobWithGroupA->setRunModel('aoe_scheduler/task_test::run');
$jobWithGroupA->setGroups($this->groups['groupA']);
$jobWithGroupA->setIsActive(true);
$jobWithGroupA->save();
$this->jobs['jobWithGroupA'] = $jobWithGroupA;
$jobWithGroupB = Mage::getModel('aoe_scheduler/job');
/* @var $jobWithGroupB Aoe_Scheduler_Model_Job */
$jobWithGroupB->setScheduleCronExpr('always');
$jobWithGroupB->setJobCode(uniqid('t_job_'));
$jobWithGroupB->setRunModel('aoe_scheduler/task_test::run');
$jobWithGroupB->setGroups($this->groups['groupB']);
$jobWithGroupB->setIsActive(true);
$jobWithGroupB->save();
$this->jobs['jobWithGroupB'] = $jobWithGroupB;
$jobWithGroupAandB = Mage::getModel('aoe_scheduler/job');
/* @var $jobWithGroupAandB Aoe_Scheduler_Model_Job */
$jobWithGroupAandB->setScheduleCronExpr('always');
$jobWithGroupAandB->setJobCode(uniqid('t_job_'));
$jobWithGroupAandB->setRunModel('aoe_scheduler/task_test::run');
$jobWithGroupAandB->setGroups("{$this->groups['groupA']},{$this->groups['groupB']}");
$jobWithGroupAandB->setIsActive(true);
$jobWithGroupAandB->save();
$this->jobs['jobWithGroupAandB'] = $jobWithGroupAandB;
// fake schedule generation to avoid it to be generated on the next run:
Mage::app()->saveCache(time(), Mage_Cron_Model_Observer::CACHE_KEY_LAST_SCHEDULE_GENERATE_AT, array('crontab'), null);
}
开发者ID:iplaydu,项目名称:Aoe_Scheduler,代码行数:35,代码来源:CronGroupsWhiteListAlwaysTest.php
示例14: setUpBeforeClass
public static function setUpBeforeClass()
{
// GroupInfo initialization depends on Config table
$config = \Library\Application::getService('Database\\Table\\Config');
$config->setSchema();
parent::setUpBeforeClass();
}
开发者ID:patrickpreuss,项目名称:Braintacle,代码行数:7,代码来源:GroupInfoTest.php
示例15: setUpBeforeClass
public static function setUpBeforeClass()
{
// These tables must exist before the view can be created
static::$serviceManager->get('Database\\Table\\ClientsAndGroups')->setSchema(true);
static::$serviceManager->get('Database\\Table\\ClientSystemInfo')->setSchema(true);
parent::setUpBeforeClass();
}
开发者ID:hschletz,项目名称:braintacle,代码行数:7,代码来源:ClientsTest.php
示例16: tearDown
protected function tearDown()
{
parent::tearDown();
$this->_helper->setDefaultAcl(null);
$this->_helper->setAcl(null);
$this->_helper->setDefaultRole(null);
$this->_helper->setRole(null);
}
开发者ID:benivaldo,项目名称:zf2-na-pratica,代码行数:8,代码来源:AbstractHelperTest.php
示例17: testStatementExecuteWithParams
public function testStatementExecuteWithParams()
{
$products = $this->_db->quoteIdentifier('zfproducts');
// Make IDENTITY column accept explicit value.
// This can be done in only one table in a given session.
sqlsrv_query($this->_db->getConnection(), "SET IDENTITY_INSERT {$products} ON");
parent::testStatementExecuteWithParams();
sqlsrv_query($this->_db->getConnection(), "SET IDENTITY_INSERT {$products} OFF");
}
开发者ID:hjr3,项目名称:zf2,代码行数:9,代码来源:SqlsrvTest.php
示例18: testSelectGroupByAutoExpr
public function testSelectGroupByAutoExpr()
{
$server = $this->_util->getServer();
if ($server == 'IDS') {
$this->markTestIncomplete('IDS does not support this SQL syntax');
} else {
parent::testSelectGroupByAutoExpr();
}
}
开发者ID:alab1001101,项目名称:zf2,代码行数:9,代码来源:PDOIBMTest.php
示例19: testTableRelationshipCascadingUpdateUsageBasicString
public function testTableRelationshipCascadingUpdateUsageBasicString()
{
$server = $this->_util->getServer();
if ($server == 'IDS') {
$this->markTestSkipped('IDS serial columns cannot be updated');
} else {
parent::testTableRelationshipCascadingUpdateUsageBasicString();
}
}
开发者ID:hjr3,项目名称:zf2,代码行数:9,代码来源:PdoIbmTest.php
示例20: testTableRowSetPrimaryKey
public function testTableRowSetPrimaryKey()
{
$server = $this->_util->getServer();
if ($server == 'IDS') {
$this->markTestSkipped('IDS Serial columns cannot be updated');
} else {
parent::testTableRowSetPrimaryKey();
}
}
开发者ID:rexmac,项目名称:zf2,代码行数:9,代码来源:PdoIbmTest.php
注:本文中的AbstractTest类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论