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


PHP WebTestCase::__construct方法代码示例

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


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

示例1:

 function __construct()
 {
     parent::__construct();
     /*
     And a little hack to make sure PHP does not timeout
     */
     //   http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
     set_time_limit(max(5 * 60, ini_get('max_execution_time')));
     $this->setServerUrl();
 }
开发者ID:GerHobbelt,项目名称:simpletest,代码行数:10,代码来源:acceptance_test.php

示例2: database

 function __construct()
 {
     parent::__construct();
     global $configure;
     $this->url = $configure['urlwebsite'];
     $this->cdashpro = false;
     if (isset($configure['cdashpro']) && $configure['cdashpro'] == '1') {
         $this->cdashpro = true;
     }
     global $db;
     $this->db =& new database($db['type']);
     $this->db->setDb($db['name']);
     $this->db->setHost($db['host']);
     $this->db->setPort($db['port']);
     $this->db->setUser($db['login']);
     $this->db->setPassword($db['pwd']);
     global $cdashpath;
     $this->logfilename = $cdashpath . "/backup/cdash.log";
 }
开发者ID:rpshaw,项目名称:CDash,代码行数:19,代码来源:kw_web_tester.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     global $configure;
     $this->url = $configure['urlwebsite'];
     $this->cdashpro = false;
     if (isset($configure['cdashpro']) && $configure['cdashpro'] == '1') {
         $this->cdashpro = true;
     }
     global $db;
     $this->db = new database($db['type']);
     $this->db->setDb($db['name']);
     $this->db->setHost($db['host']);
     $this->db->setPort($db['port']);
     $this->db->setUser($db['login']);
     $this->db->setPassword($db['pwd']);
     global $CDASH_LOG_FILE, $cdashpath;
     $this->logfilename = $CDASH_LOG_FILE;
     $this->configfilename = $cdashpath . '/config/config.local.php';
 }
开发者ID:kitware,项目名称:cdash,代码行数:20,代码来源:kw_web_tester.php

示例4: __construct

 public function __construct()
 {
     $this->_indexName = CATSUtility::getIndexName();
     $this->_indexURL = CATSUtility::getAbsoluteURI($this->_indexName);
     parent::__construct();
 }
开发者ID:PublicityPort,项目名称:OpenCATS,代码行数:6,代码来源:CATSWebTestCase.php

示例5: __construct

 public function __construct()
 {
     parent::__construct('PHP_Merchant_Paypal_Express_Checkout Remote Unit Tests');
 }
开发者ID:nikitanaumov,项目名称:WP-e-Commerce,代码行数:4,代码来源:paypal-express-checkout.php

示例6: __construct

 public function __construct($name = NULL, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->secretFile = str_replace(DIRECTORY_SEPARATOR, '/', realpath(__DIR__ . '/data/hidden.txt'));
     $this->secretContent = trim(file_get_contents($this->secretFile));
 }
开发者ID:brennantom,项目名称:hackazon,代码行数:6,代码来源:RESTWebTestCase.php

示例7: TestOfPagerPOST

 function TestOfPagerPOST($name = 'Test of Pager with httpMethod="POST"')
 {
     parent::__construct($name);
 }
开发者ID:pear,项目名称:pager,代码行数:4,代码来源:pager_post_test.php

示例8: __construct

 public function __construct($name = null, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->validationServiceAvailable = $this->isValidationServiceAvailable();
 }
开发者ID:ericpoe,项目名称:LiipFunctionalTestBundle,代码行数:5,代码来源:Html5WebTestCase.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->validationServiceAvailable = $this->isValidationServiceAvailable();
 }
开发者ID:austinpapp,项目名称:push-notifications-temp,代码行数:5,代码来源:Html5WebTestCase.php

示例10: PDO

 function __construct($label = false)
 {
     parent::__construct($label);
     $this->DB = new PDO("mysql:host=" . TESTING_DB_SERVER . ";dbname=" . TESTING_DB_NAME . ";port=3306", TESTING_DB_USER, TESTING_DB_PASS);
     removeAllTestData($this->DB);
 }
开发者ID:cwarren,项目名称:digitalfieldnotebooks,代码行数:6,代码来源:WMS_web_tester.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->testValidationServiceAvailability();
 }
开发者ID:recipe,项目名称:LiipFunctionalTestBundle,代码行数:5,代码来源:Html5WebTestCase.php

示例12: __construct

 public function __construct($name = '')
 {
     parent::__construct($name);
     $this->_ci =& get_instance();
 }
开发者ID:muhamadsyahril,项目名称:codeigniter-simpletest,代码行数:5,代码来源:unit_test.php

示例13:

 function __construct()
 {
     parent::__construct();
 }
开发者ID:justinlyon,项目名称:scc,代码行数:4,代码来源:TestExhibitionAction.php

示例14: TestUploadInc

 function TestUploadInc()
 {
     parent::__construct('Upload.inc.php functional test');
     $this->dir = dirname(__FILE__) . '/files';
 }
开发者ID:radicaldesigns,项目名称:amp,代码行数:5,代码来源:TestUploadInc.php


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