some small test library cleanups

This commit is contained in:
Graham Knop 2009-09-14 11:10:42 -05:00
parent 79b849262c
commit 86bacc54c6
2 changed files with 13 additions and 16 deletions

View file

@ -4,13 +4,14 @@ 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; },
Test::MockObject->fake_module(
'Apache2::Cookie',
new => sub {
my $class = shift;
my $self = Test::MockObject->new;
$self->set_isa($class);
$self->set_true(qw(expires domain bake));
}
);
=head1 LEGAL