Re: Mock objects with PHPUnit2

From: Date: Thu, 26 Jan 2006 10:41:47 +0000
Subject: Re: Mock objects with PHPUnit2
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22686@lists.php.net to get a copy of this message
Sebastian Bergmann schrieb: > 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(...); This is no longer true; the convenience method from PHPUnit2_Framework_Assert now has an additional parameter that can be used to pass arguments to the mock object's constructor. -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

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