本文整理汇总了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();
}
示例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";
}
示例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';
}
示例4: __construct
public function __construct()
{
$this->_indexName = CATSUtility::getIndexName();
$this->_indexURL = CATSUtility::getAbsoluteURI($this->_indexName);
parent::__construct();
}
示例5: __construct
public function __construct()
{
parent::__construct('PHP_Merchant_Paypal_Express_Checkout Remote Unit Tests');
}
示例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));
}
示例7: TestOfPagerPOST
function TestOfPagerPOST($name = 'Test of Pager with httpMethod="POST"')
{
parent::__construct($name);
}
示例8: __construct
public function __construct($name = null, array $data = array(), $dataName = '')
{
parent::__construct($name, $data, $dataName);
$this->validationServiceAvailable = $this->isValidationServiceAvailable();
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->validationServiceAvailable = $this->isValidationServiceAvailable();
}
示例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);
}
示例11: __construct
public function __construct()
{
parent::__construct();
$this->testValidationServiceAvailability();
}
示例12: __construct
public function __construct($name = '')
{
parent::__construct($name);
$this->_ci =& get_instance();
}
示例13:
function __construct()
{
parent::__construct();
}
示例14: TestUploadInc
function TestUploadInc()
{
parent::__construct('Upload.inc.php functional test');
$this->dir = dirname(__FILE__) . '/files';
}