Welcome to the Monastery | |
PerlMonks |
Testing mod_perl handlers [was Re: changing object's methods at runtime]by ViceRaid (Chaplain) |
on May 21, 2003 at 14:03 UTC ( [id://259724]=note: print w/replies, xml ) | Need Help?? |
Thanks Ilya Actually, I started off with Test::MockObject to fake the request, but there was a lot of methods I needed to mock and that's a bit laborious. The other reason is that Apache::Request conveniently fills out all the Apache::Constants, eg, Apache::Contants::FORBIDDEN which otherwise need to be set manually as they're unavailable when running outside mod_perl. But having tried it both ways now ;), there's really not much in it.
In Section
Seekers of Perl Wisdom
|
|