本文整理汇总了PHP中debug_mock::init方法的典型用法代码示例。如果您正苦于以下问题:PHP debug_mock::init方法的具体用法?PHP debug_mock::init怎么用?PHP debug_mock::init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类debug_mock
的用法示例。
在下文中一共展示了debug_mock::init方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
function setUp()
{
$this->_clean_up();
$this->object = new site_object_manipulation_test();
debug_mock :: init($this);
$user =& user :: instance();
$user->_set_id(10);
$tree =& limb_tree :: instance();
$values['identifier'] = 'root';
$root_node_id = $tree->create_root_node($values, false, true);
$values['identifier'] = 'ru';
$values['object_id'] = 1;
$this->parent_node_id = $tree->create_sub_node($root_node_id, $values);
$class_id = $this->object->get_class_id();
$this->db->sql_insert('sys_site_object', array('id' => 1, 'class_id' => $class_id, 'current_version' => 1));
$values['identifier'] = 'document';
$values['object_id'] = 10;
$this->sub_node_id = $tree->create_sub_node($this->parent_node_id, $values);
$class_id = $this->object->get_class_id();
$this->db->sql_insert('sys_site_object', array('id' => 10, 'class_id' => $class_id, 'current_version' => 1));
}
示例2: setUp
function setUp()
{
$this->db =& db_factory::instance();
$this->_clean_up();
$this->_init_site_object();
$this->object->set_attribute('controller_name', 'site_object_controller');
$controller_id = site_object_controller::get_id('site_object_controller');
$this->object->set_attribute('controller_id', $controller_id);
debug_mock::init($this);
$user =& user::instance();
$user->_set_id(10);
$tree =& tree::instance();
$values['identifier'] = 'root';
$values['object_id'] = 100;
$this->root_node_id = $tree->create_root_node($values, false, true);
$class_id = $this->object->get_class_id();
$this->db->sql_insert('sys_site_object', array('id' => 100, 'class_id' => $class_id, 'current_version' => 1));
$values['identifier'] = 'ru';
$values['object_id'] = 1;
$this->parent_node_id = $tree->create_sub_node($this->root_node_id, $values);
$this->db->sql_insert('sys_site_object', array('id' => 1, 'class_id' => $class_id, 'current_version' => 1));
$values['identifier'] = 'document';
$values['object_id'] = 10;
$this->sub_node_id = $tree->create_sub_node($this->parent_node_id, $values);
$this->db->sql_insert('sys_site_object', array('id' => 10, 'class_id' => $class_id, 'current_version' => 1));
}
示例3: setUp
function setUp()
{
debug_mock::init($this);
$this->_load_tables_list();
$this->_clean_up();
$this->_load_dumped_db();
}
示例4: setUp
function setUp()
{
$this->db = db_factory::instance();
debug_mock::init($this);
$this->driver = new materialized_path_driver_test_version();
$this->_clean_up();
}
示例5: setUp
function setUp()
{
$this->db = db_factory::instance();
debug_mock::init($this);
$this->driver = new nested_sets_driver_test_version();
$this->_clean_up();
}
示例6: setUp
function setUp()
{
$this->_clean_up();
parent::setUp();
debug_mock::init($this);
$this->object =& new phpbb_user();
}
示例7: setUp
function setUp()
{
debug_mock::init($this);
$this->dataspace =& dataspace_registry::get('test1');
$this->form_action = new form_action_test_version($this);
$this->request = new Mockrequest($this);
$this->response = new Mockresponse($this);
}
示例8: setUp
function setUp()
{
$_REQUEST['action'] = 'test_action';
$this->site_object_controller =& new site_object_controller_test_version1($this);
$this->site_object_controller->setReturnValue('get_actions_definitions', $this->test_actions_definition);
$this->site_object_controller->site_object_controller();
debug_mock::init($this);
}
示例9: setUp
function setUp()
{
$this->object = $this->_create_site_object();
$this->_clean_up();
debug_mock :: init($this);
}
示例10: setUp
function setUp()
{
debug_mock::init($this);
$this->test_init = new $this->init_class_name();
$this->_init_object();
$this->class_id = $this->object->get_class_id();
$this->test_init->init($this->object);
}
示例11: setUp
function setUp()
{
$this->request = new Mockrequest($this);
$this->response = new Mockresponse($this);
$this->site_object_controller =& new site_object_controller_test_version1($this);
$this->site_object_controller->setReturnValue('get_actions_definitions', $this->actions_definition_test);
$this->site_object_controller->site_object_controller();
debug_mock::init($this);
}
示例12: setUp
function setUp()
{
$this->db = db_factory :: instance();
debug_mock :: init($this);
$this->imp = $this->_create_tree_imp();
$this->_clean_up();
}
示例13: setUp
function setUp()
{
$this->_clean_up();
$this->object = new site_object_auto_identifier_test_version();
$tree =& limb_tree::instance();
$values['identifier'] = 'root';
$values['object_id'] = 1;
$this->parent_node_id = $tree->create_root_node($values, false, true);
$class_id = $this->object->get_class_id();
$this->db->sql_insert('sys_site_object', array('id' => 1, 'class_id' => $class_id, 'current_version' => 1));
debug_mock::init($this);
}
示例14: setUp
function setUp()
{
debug_mock::init($this);
$dataspace =& dataspace::instance();
$dataspace->import(array());
$dataspace =& dataspace::instance('test1');
$dataspace->import(array());
unset($_REQUEST['test1']);
unset($_REQUEST['submitted']);
unset($_REQUEST['username']);
unset($_REQUEST['password']);
unset($_REQUEST['password_confirm']);
}
示例15: setUp
function setUp()
{
$this->object =& $this->_create_site_object();
$this->_clean_up();
debug_mock::init($this);
$_SESSION[user::get_session_identifier()]['id'] = 10;
$tree =& limb_tree::instance();
$values['identifier'] = 'root';
$values['object_id'] = 1;
$this->parent_node_id = $tree->create_root_node($values, false, true);
$this->db->sql_insert('sys_class', array('id' => 1, 'class_name' => 'mock_root_object'));
$this->db->sql_insert('sys_site_object', array('id' => 1, 'class_id' => 1, 'current_version' => 1, 'identifier' => 'root'));
}