當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。