Re: Mock objects with PHPUnit2

From: Date: Mon, 23 Jan 2006 18:08:39 +0000
Subject: Re: Mock objects with PHPUnit2
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22646@lists.php.net to get a copy of this message
Rob Young schrieb: > Not really I'm afraid. The issue I'm having is that if the class I want > to mock expects parameters to be passed to it then I get a warning. 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 -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

« previous php.pear.general (#22646) next »