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
On Sunday 28 April 2002 02:00, Tatsuhiko Miyagawa wrote:
> Here's a patch
> * pass tests in 5.005_03
> * can() should return subref instead of just 1
Thanks, applied! I also added a test to prevent that can() thinko from
reoccurring.
> Seems interesting. But I prefer a direct way to define M
-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