Re: Re: Mock objects with PHPUnit2
| From: | Robert Young | Date: | Mon, 23 Jan 2006 18:27:03 +0000 |
| Subject: | Re: Re: Mock objects with PHPUnit2 | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22647@lists.php.net to get a copy of this message | ||
On 1/23/06, Sebastian Bergmann <sb@sebastian-bergmann.de> wrote:
> Of course you cannot use the convenience method from
> PHPUnit2_Framework_Assert in that case and do the following
>
> PHPUnit2_Extensions_MockObject_Mock::generate("MyClass");
> $o = new Mock_MyClass(...);
>
> HTH,
> Sebastian
Ahh, I see.
Thank you
Rob