Make WebGUI::PseudoRequest work with fatals. Cookies are now mocked and

tied off inside that package.  ErrorHandler uses the session request object,
instead of RequestUtil.
This commit is contained in:
Colin Kuskie 2009-02-18 02:46:59 +00:00
parent e0ce8caf5a
commit c90fa56507
3 changed files with 34 additions and 3 deletions

View file

@ -2,6 +2,17 @@ package WebGUI::PseudoRequest;
use strict;
use Test::MockObject;
my $mocker = Test::MockObject->new();
$mocker->fake_module(
'Apache2::Cookie',
new => sub { return bless {}, 'Apache2::Cookie'; },
expires => sub { 1; },
domain => sub { 1; },
bake => sub { 1; },
);
=head1 LEGAL
-------------------------------------------------------------------