本文整理汇总了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);
}
示例2: TestUpload
function TestUpload()
{
parent::UnitTestCase();
$this->CI =& get_instance();
$this->DBI = $this->CI->load->database('testing', TRUE);
$this->setUpDB();
}
示例3:
function test_AkActiveRecord_actAsTree()
{
parent::UnitTestCase();
$this->_createNewTestingModelDatabase('AkTestCategory');
$this->_createNewTestingModel('AkTestCategory');
$this->_createNewTestingModel('AkDependentTestCategory');
}
示例4: instance
function site_object_tester($class_name)
{
$this->db =& db_factory :: instance();
$this->class_name = $class_name;
parent :: UnitTestCase();
}
示例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;
}
示例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');
}
示例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);
}
示例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;
}
}
示例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');
}
示例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();
}
示例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;
}
示例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, '', '');
}
}
示例13: UnitTestCase
function search_engine_google_rule_test()
{
parent :: UnitTestCase();
}
示例14: UnitTestCase
function phpbb_user_test()
{
parent :: UnitTestCase();
$this->db = db_factory :: instance();
}
示例15:
function __construct()
{
parent::UnitTestCase();
}