本文整理匯總了PHP中SimpleTestCase::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP SimpleTestCase::__construct方法的具體用法?PHP SimpleTestCase::__construct怎麽用?PHP SimpleTestCase::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SimpleTestCase
的用法示例。
在下文中一共展示了SimpleTestCase::__construct方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
/**
* Creates an empty test case. Should be subclassed
* with test methods for a functional test case.
* @param string $label Name of test case. Will use
* the class name if none specified.
* @access public
*/
function __construct($label = false)
{
parent::__construct($label);
$this->current_shell = $this->createShell();
$this->last_status = false;
$this->last_command = '';
}
示例2:
/**
* Creates an empty test case. Should be subclassed
* with test methods for a functional test case.
* @param string $label Name of test case. Will use
* the class name if none specified.
* @access public
*/
function __construct($label = false)
{
if (!$label) {
$label = get_class($this);
}
parent::__construct($label);
}
示例3:
/**
* Creates an empty test case. Should be subclassed
* with test methods for a functional test case.
* @param string $label Name of test case. Will use
* the class name if none specified.
* @access public
*/
function __construct($label = false)
{
parent::__construct($label);
}
示例4: __construct
public function __construct($path)
{
$this->_path = $path;
parent::__construct($path);
}
示例5: __construct
/**
* Constructor. Sets the test name.
*
* @param $label Test name to display.
*/
public function __construct($label = false)
{
parent::__construct($label);
$this->_loosely_typed = false;
}
示例6:
/**
* Constructor. Sets the test name.
* @param $label Test name to display.
* @public
*/
function PHPUnit_TestCase($label = false)
{
parent::__construct($label);
$this->_loosely_typed = false;
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->_curl = curl_init();
curl_setopt($this->_curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($this->_curl, CURLOPT_MAXREDIRS, 5);
curl_setopt($this->_curl, CURLOPT_RETURNTRANSFER, true);
$this->_jar = tempnam(sys_get_temp_dir(), 'COOKIEJAR');
curl_setopt($this->_curl, CURLOPT_COOKIEJAR, $this->_jar);
}