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


PHP debug_mock::init方法代码示例

本文整理汇总了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));
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:30,代码来源:__site_object_manipulation.test.php

示例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));
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:26,代码来源:site_object_manipulation_test.class.php

示例3: setUp

 function setUp()
 {
     debug_mock::init($this);
     $this->_load_tables_list();
     $this->_clean_up();
     $this->_load_dumped_db();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:7,代码来源:test_db_case.php

示例4: setUp

 function setUp()
 {
     $this->db = db_factory::instance();
     debug_mock::init($this);
     $this->driver = new materialized_path_driver_test_version();
     $this->_clean_up();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:7,代码来源:materialized_path_driver_test.class.php

示例5: setUp

 function setUp()
 {
     $this->db = db_factory::instance();
     debug_mock::init($this);
     $this->driver = new nested_sets_driver_test_version();
     $this->_clean_up();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:7,代码来源:nested_sets_driver_test.class.php

示例6: setUp

 function setUp()
 {
     $this->_clean_up();
     parent::setUp();
     debug_mock::init($this);
     $this->object =& new phpbb_user();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:7,代码来源:phpbb_user_test.class.php

示例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);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:form_action_test.class.php

示例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);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:site_object_controller.test.php

示例9: setUp

  function setUp()
  {
    $this->object = $this->_create_site_object();

    $this->_clean_up();

    debug_mock :: init($this);
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:site_object_controller_tester.class.php

示例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);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:site_object_fetch_test.class.php

示例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);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:9,代码来源:site_object_controller_test.class.php

示例12: setUp

  function setUp()
  {
    $this->db = db_factory :: instance();

    debug_mock :: init($this);

    $this->imp = $this->_create_tree_imp();

    $this->_clean_up();
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:10,代码来源:materialized_path_tree_test.class.php

示例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);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:12,代码来源:site_object_auto_identifier.test.php

示例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']);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:13,代码来源:form_action_test.class.php

示例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'));
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:13,代码来源:__site_object_template.test.php


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