Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!storethat.news.telefonica.de!feedme.news.telefonica.de!telefonica.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Chris Riesbeck Newsgroups: comp.lang.php Subject: Re: simpletest vs phpunit vs ... Date: Thu, 21 Feb 2013 14:08:52 -0600 Lines: 20 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net a9VMdFRiSwNLT+/HIq91dAM9HYcX/0FIDRmwlg7C19z9fQE8OSbrLHAX/6KUOGlHie Cancel-Lock: sha1:II+BoHdWVvtd35azxiYFHuldTY0= User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 In-Reply-To: Xref: csiph.com comp.lang.php:8421 On 2/21/2013 1:27 PM, Richard wrote: > [Please do not mail me a copy of your followup] > > Simon spake the secret code > thusly: > >> Shall I bite the bullet now and move to phpunit or will simpletest still >> be good enough for a long, long time? > > I've been using phpunit. What I find lacking is a good mocking > library, so I end up writing my own state-based fake objects that > derive from my interface. I'd really like to find something that is > as expressive as jMock is for java mock objects, but so far I haven't > found anything that seems to work that way. > I'm curious which specific aspects of jMock you most wanted that weren't in PHPunit's Mock objects http://www.phpunit.de/manual/3.0/en/mock-objects.html