当前位置: 首页>>代码示例>>PHP>>正文


PHP UnitTestCase::UnitTestCase方法代码示例

本文整理汇总了PHP中UnitTestCase::UnitTestCase方法的典型用法代码示例。如果您正苦于以下问题:PHP UnitTestCase::UnitTestCase方法的具体用法?PHP UnitTestCase::UnitTestCase怎么用?PHP UnitTestCase::UnitTestCase使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UnitTestCase的用法示例。


在下文中一共展示了UnitTestCase::UnitTestCase方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: LimbTestCase

  function LimbTestCase($label = false, $auto_label = true)
  {
    if($label && $auto_label)
      $label = make__FILE__readable($label);

    parent :: UnitTestCase($label);
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:7,代码来源:LimbTestCase.class.php

示例2: TestUpload

 function TestUpload()
 {
     parent::UnitTestCase();
     $this->CI =& get_instance();
     $this->DBI = $this->CI->load->database('testing', TRUE);
     $this->setUpDB();
 }
开发者ID:cybercog,项目名称:exambuff,代码行数:7,代码来源:testupload.php

示例3:

 function test_AkActiveRecord_actAsTree()
 {
     parent::UnitTestCase();
     $this->_createNewTestingModelDatabase('AkTestCategory');
     $this->_createNewTestingModel('AkTestCategory');
     $this->_createNewTestingModel('AkDependentTestCategory');
 }
开发者ID:joeymetal,项目名称:v1,代码行数:7,代码来源:AkActsAsTree.php

示例4: instance

  function site_object_tester($class_name) 
  {
  	$this->db =& db_factory :: instance();
  	
  	$this->class_name = $class_name;

  	parent :: UnitTestCase();
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:site_object_tester.class.php

示例5:

 function __construct()
 {
     parent::UnitTestCase();
     global $CFG;
     // For the demo, our 'remote' host is actually our local host.
     $this->wwwroot = $CFG->wwwroot;
     $this->remoteRoot = $this->wwwroot;
 }
开发者ID:r007,项目名称:PMoodle,代码行数:8,代码来源:WebService.php

示例6:

 function test_AkActiveRecord_observer()
 {
     parent::UnitTestCase();
     $this->_createNewTestingModelDatabase('AkTestObservedPerson');
     $this->_createNewTestingModelDatabase('AkTestObservedAccount');
     $this->_createNewTestingModel('AkTestObservedPerson');
     $this->_createNewTestingModel('AkTestObservedAccount');
     $this->_createNewTestingModel('AkTestObservedPersonObserver');
     $this->_createNewTestingModel('AkTestAuditor');
 }
开发者ID:joeymetal,项目名称:v1,代码行数:10,代码来源:AkObserver.php

示例7:

 function test_image_library()
 {
     parent::UnitTestCase();
     $this->input_file = TEST_CASES_DIR . '/image/images/1.jpg';
     $this->output_file = TEST_CASES_DIR . '/image/images/2.jpg';
     $input_type = 'jpeg';
     $output_type = 'jpeg';
     $this->library->set_input_file($this->input_file, $input_type);
     $this->library->set_output_file($this->output_file, $output_type);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:10,代码来源:test_image_library.php

示例8: __construct

 public function __construct($name = 'Selenium Test Case')
 {
     parent::UnitTestCase($name);
     if (empty($this->browser)) {
         trigger_error('browser property must be set in ' . get_class($this));
         exit;
     }
     if (empty($this->browserUrl)) {
         trigger_error('browserUrl property must be set in ' . get_class($this));
         exit;
     }
 }
开发者ID:googlecode-mirror,项目名称:bulldoc,代码行数:12,代码来源:selenium.php

示例9:

 function test_AkActiveRecord()
 {
     parent::UnitTestCase();
     $this->_createNewTestingModelDatabase('AkTestUser');
     $this->_createNewTestingModel('AkTestUser');
     $this->_createNewTestingModelDatabase('AkTestMember');
     $this->_createNewTestingModel('AkTestMember');
     $this->_createNewTestingModel('AkTestField');
     $this->_createNewTestingModelDatabase('AkTestField');
     $this->_createNewTestingModelDatabase('AkTestComment');
     $this->_createNewTestingModel('AkTestComment');
 }
开发者ID:joeymetal,项目名称:v1,代码行数:12,代码来源:_AkActiveRecord_1.php

示例10: DBOperationsTest

 /**
  * Constructor Once/TestCase
  * Prequsites for this TestCase to run: Create a sqlite DB
  */
 public function DBOperationsTest()
 {
     @unlink(TMP . 'test.db');
     $query = '
         CREATE TABLE authors (
             id INTEGER PRIMARY KEY,
             name VARCHAR(100),
             email VARCHAR(150)
         );
     ';
     sqlite_query(sqlite_open(TMP . 'test.db'), $query);
     parent::UnitTestCase();
 }
开发者ID:BackupTheBerlios,项目名称:medick-svn,代码行数:17,代码来源:DBOperationsTest.php

示例11:

 /**
  *  Ethna_UnitTestCaseのコンストラクタ
  *
  *  @access public
  *  @param  object  Ethna_Controller    &$controller    コントローラオブジェクト
  */
 function Ethna_UnitTestCase(&$controller)
 {
     parent::UnitTestCase();
     // オブジェクトの設定
     $this->controller =& $controller;
     $this->ctl =& $this->controller;
     $this->backend =& $this->ctl->getBackend();
     $this->session =& $this->backend->getSession();
     // 変数の初期化
     $this->action_form = $this->af = null;
     $this->action_class = $this->ac = null;
     $this->view_class = $this->vc = null;
 }
开发者ID:BackupTheBerlios,项目名称:delphinus-svn,代码行数:19,代码来源:Ethna_UnitTestCase.php

示例12:

 function Ethna_UnitTestBase($label = false)
 {
     parent::UnitTestCase($label);
     // controller
     $this->ctl =& Ethna_Controller::getInstance();
     if ($this->ctl === null) {
         $this->ctl =& new Ethna_Controller();
     }
     $this->controller =& $this->ctl;
     // backend
     $this->backend =& $this->ctl->getBackend();
     // actionform
     if ($this->ctl->action_form === null) {
         $this->ctl->action_form =& new Ethna_ActionForm($this->ctl);
         $this->backend->setActionForm($this->ctl->action_form);
     }
     // viewclass
     if ($this->ctl->view === null) {
         $this->ctl->view =& new Ethna_ViewClass($this->backend, '', '');
     }
 }
开发者ID:hiroki-namekawa,项目名称:test-upr,代码行数:21,代码来源:Ethna_UnitTestBase.php

示例13: UnitTestCase

 function search_engine_google_rule_test() 
 {
 	parent :: UnitTestCase();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:4,代码来源:search_engine_google_rule_test.class.php

示例14: UnitTestCase

 function phpbb_user_test() 
 {
 	parent :: UnitTestCase();
 	
 	$this->db = db_factory :: instance();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:6,代码来源:phpbb_user_test.class.php

示例15:

 function __construct()
 {
     parent::UnitTestCase();
 }
开发者ID:r007,项目名称:PMoodle,代码行数:4,代码来源:test_localWebService.php


注:本文中的UnitTestCase::UnitTestCase方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。