[Catalyst] Unit Testing

Peter Fitzgibbons peter.fitzgibbons at gmail.com
Sun Apr 20 04:31:24 BST 2008


HI Yao,

I solved this by reverse-engineering the context with a debug session
($DB::single=3D1).
In short, $c is an instance of MyApp.  You may have to manually instantiate
some of the internal hashes, etc for the needs of the test target.  I'll
assume that if you're truly unit-testing, you'll be mocking the other
externals of your controller.

Hope that helps.

-- =

Peter Fitzgibbons
------------------------------
iPhone -- "IT"-ness.
href=3D
http://www.macdailynews.com/index.php/weblog/comments/apples_iphone_could_b=
ecome_iconic_it_object
------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080419/f4087=
d0e/attachment.htm


More information about the Catalyst mailing list