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


PHP AbstractTest类代码示例

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


在下文中一共展示了AbstractTest类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: 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

示例5: 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

示例6: 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

示例7: 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

示例8: 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

示例9: 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

示例10: 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

示例11: 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

示例12: 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

示例13: 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

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $this->_navigationMock = $this->getMock('Navigation', array('refresh', 'to', 'back', 'forward'));
     $this->_windowMock = $this->getMock('Window', array('maximize', 'close', 'setSize', 'getSize', 'setPosition', 'getPosition'));
     $this->_targetLocatorMock = $this->getMock('TargetLocator', array('window', 'frame'));
     $this->_originalNavigate = $this->_driver->navigate();
     $this->_originalWindow = $this->_driver->manage()->window();
     $this->_originalTargetLocator = $this->_driver->switchTo();
 }
开发者ID:nearsoft,项目名称:php-selenium-client,代码行数:10,代码来源:WebDriverTest.php

示例15: tearDown

 protected function tearDown()
 {
     clearstatcache();
     // Remove tmp file
     if ($this->_tmpFileName && file_exists($this->_tmpFileName)) {
         chmod($this->_tmpFileName, 0600);
         // Reset file permissions, for avoid permission denied on Windows
         unlink($this->_tmpFileName);
     }
     parent::tearDown();
 }
开发者ID:tpc2,项目名称:phprack,代码行数:11,代码来源:AbstractTest.php


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