當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TuleapTestCase::__construct方法代碼示例

本文整理匯總了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');
 }
開發者ID:amanikamail,項目名稱:tuleap,代碼行數:7,代碼來源:Tracker_Artifact_ChangesetValue_ListTest.php

示例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';
 }
開發者ID:rinodung,項目名稱:tuleap,代碼行數:9,代碼來源:Tracker_FormElement_Field_OpenListTest.php

示例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__) . "/../..");
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:10,代碼來源:TuleapDbTestCase.class.php

示例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");
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:11,代碼來源:SVN_SvnlookTest.php

示例5: __construct

 public function __construct($classname)
 {
     parent::__construct();
     $this->classname = $classname;
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:5,代碼來源:GitViewsRepositoriesTraversalStrategyTest.class.php

示例6:

 function __construct($name = 'AdminDelegation_UserService test')
 {
     parent::__construct($name);
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:4,代碼來源:AdminDelegation_UserServiceTest.php


注:本文中的TuleapTestCase::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。