I posted short article [1] about Test::MockObject on
www.perlmonks.org. I think it may be interesting to members of this
maillist.
[1] http://www.perlmonks.org/index.pl?node_id=174082
--
Ilya Martynov (http://martynov.org/)
On Sun, Apr 28, 2002 at 01:06:18AM -0700, chromatic wrote:
> I've written a module to make it easier to do very strict unit testing. It
> lets you fake an existing interface somewhat more easily. For example, if
> you're testing a web app, you can mock up CGI.pm instead of having to specify
> qu
w($q);
> $app->run;
> It's not so irresistable to me. And doing so gives me a flexibility.
> Well I believe you'll convert me with your future article (on
> perl.com?) ;)
The idea's not very complicated at all. If you know how functions and
methods differ and can
-BEGIN PGP SIGNED MESSAGE-
MOIN,
On 28-Apr-02 Tatsuhiko Miyagawa carved into stone:
> At Sun, 28 Apr 2002 01:06:18 -0700,
> chromatic wrote:
>
>> I've written a module to make it easier to do very strict unit testing.
>> It
>> lets you fake an existing interface somewhat more easily.
st 1
--
Tatsuhiko Miyagawa <[EMAIL PROTECTED]>
diff -ruN Test-MockObject-0.03/lib/Test/MockObject.pm
Test-MockObject-0.03.patch/lib/Test/MockObject.pm
--- Test-MockObject-0.03/lib/Test/MockObject.pm Sun Apr 28 17:46:24 2002
+++ Test-MockObject-0.03.patch/lib/Test/MockObject.pm Sun
I've written a module to make it easier to do very strict unit testing. It
lets you fake an existing interface somewhat more easily. For example, if
you're testing a web app, you can mock up CGI.pm instead of having to specify
query information manually.
This is early code and the interface is