in reply to Re: Re: Documenting Methods/Subs
in thread Documenting Methods/Subs
and similar tricks. If you're enforcing the object type you have to draft in Test::MockObject, which is great, but is also substantially more complex.sub test_the_thing : Test { my $self = shift; ... $object_under_test->do_the_thing( foo => $self, ... ) ... } sub called_from_do_the_thing { my $self = shift; ok array_eq(\@_, [qw/foo bar baz/]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Test::Class & self-shunt pattern
by adrianh (Chancellor) on Jan 12, 2003 at 23:07 UTC | |
by pdcawley (Hermit) on Jan 13, 2003 at 07:14 UTC | |
by adrianh (Chancellor) on Jan 13, 2003 at 10:40 UTC | |
by pdcawley (Hermit) on Jan 13, 2003 at 11:52 UTC | |
by adrianh (Chancellor) on Jan 13, 2003 at 12:09 UTC | |
| |
|
Re: Re: Re: Re: Documenting Methods/Subs
by autarch (Hermit) on Jan 16, 2003 at 03:20 UTC | |
by pdcawley (Hermit) on Jan 16, 2003 at 08:16 UTC | |
by adrianh (Chancellor) on Jan 17, 2003 at 17:41 UTC | |
by pdcawley (Hermit) on Jan 19, 2003 at 02:01 UTC | |
by adrianh (Chancellor) on Jan 19, 2003 at 09:38 UTC | |
|