Posted on 2010-12-21 23:32:51.288538-08 by happynewyear
How to use Test-MockObject to emulating something?
I'm a jackaroo, and I have no idea about Test-MockObject. It's better to show me some example. Thanks!
Direct Responses: 13179 | Write a response
Posted on 2011-02-05 06:19:09.899753-08 by jonasbn in response to 13117
Re: How to use Test-MockObject to emulating something?

I have written a brief example for Test::MockObject::Extends

You can see it at: http://logiclab.jira.com/wiki/display/OPEN/Test-MockObject-Extends

It should give you some pointers on how to mock, I will extend the article as I dig up examples from my own code base.

I can really recommend the book: Perl Testing: A Developer's Notebook by Chromatic and Ian Langworth. See: http://oreilly.com/catalog/9780596100926

Articles might also shed some light: http://www.perl.com/pub/a/2005/04/07/mockobject_kata.html

From: https://www.socialtext.net/perl5/index.cgi?testing#recent_perl_com_articles_on_testing

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.