本文整理汇总了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);
}