コード例 #1
0
 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
0
 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
0
 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
0
 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");
 }
 public function __construct($classname)
 {
     parent::__construct();
     $this->classname = $classname;
 }
コード例 #6
0
 function __construct($name = 'AdminDelegation_UserService test')
 {
     parent::__construct($name);
 }