some small test library cleanups
This commit is contained in:
parent
79b849262c
commit
86bacc54c6
2 changed files with 13 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue