本文整理匯總了PHP中TuleapTestCase::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP TuleapTestCase::__construct方法的具體用法?PHP TuleapTestCase::__construct怎麽用?PHP TuleapTestCase::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TuleapTestCase
的用法示例。
在下文中一共展示了TuleapTestCase::__construct方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: mock
function __construct($name = 'Chageset Value List Test')
{
parent::__construct($name);
$this->field_class = 'MockTracker_FormElement_Field_List';
$this->changesetvalue_class = 'Tracker_Artifact_ChangesetValue_List';
$this->user = mock('PFUser');
}
示例2:
function __construct($name = 'Open List test')
{
parent::__construct($name);
$this->field_class = 'Tracker_FormElement_Field_OpenListTestVersion';
$this->field_class_for_import = 'Tracker_FormElement_Field_OpenListTestVersion_ForImport';
$this->dao_class = 'MockTracker_FormElement_Field_Value_OpenListDao';
$this->cv_class = 'Tracker_Artifact_ChangesetValue_OpenList';
$this->mockcv_class = 'MockTracker_Artifact_ChangesetValue_OpenList';
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->loadConfiguration();
$this->mysqli = mysqli_init();
if (!$this->mysqli->real_connect($GLOBALS['sys_dbhost'], $GLOBALS['sys_dbuser'], $GLOBALS['sys_dbpasswd'])) {
$this->mysqli = false;
}
$this->src_dir = realpath(dirname(__FILE__) . "/../..");
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->svn_prefix = dirname(__FILE__) . '/_fixtures';
$project_name = 'svnrepo';
$this->project = stub('Project')->getSVNRootPath()->returns($this->svn_prefix . '/' . $project_name);
$this->svnrepo = $this->svn_prefix . '/' . $project_name;
exec("svnadmin create {$this->svnrepo}");
exec("svn mkdir --username donald_duck --parents -m 'this is 1.0' file://{$this->svnrepo}/tags/1.0");
exec("svn mkdir --parents -m 'that is 2.0' file://{$this->svnrepo}/tags/2.0");
}
示例5: __construct
public function __construct($classname)
{
parent::__construct();
$this->classname = $classname;
}
示例6:
function __construct($name = 'AdminDelegation_UserService test')
{
parent::__construct($name);
}