本文整理汇总了PHP中debug_mock::expect_write_warning方法的典型用法代码示例。如果您正苦于以下问题:PHP debug_mock::expect_write_warning方法的具体用法?PHP debug_mock::expect_write_warning怎么用?PHP debug_mock::expect_write_warning使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类debug_mock
的用法示例。
在下文中一共展示了debug_mock::expect_write_warning方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
function test_display_empty_view()
{
$this->request->setReturnValue('get_attribute', 'no_such_action', array('action'));
debug_mock :: expect_write_warning('action not found',
array (
'class' => 'site_object_controller_test_version1',
'action' => 'no_such_action',
'default_action' => 'display',
)
);
$this->assertIdentical($this->site_object_controller->determine_action($this->request), false);
debug_mock :: expect_write_error('template is null');
$this->site_object_controller->display_view();
}
示例2: test_display_empty_view
function test_display_empty_view()
{
$_REQUEST['action'] = 'no_such_action';
debug_mock::expect_write_warning('action not found', array('class' => 'site_object_controller_test_version1', 'action' => 'no_such_action', 'default_action' => 'display'));
$this->assertIdentical($this->site_object_controller->determine_action(), false);
debug_mock::expect_write_error('template is null');
$this->site_object_controller->display_view();
}