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 reply to Testing mod_perl handlers [was Re: changing object's methods at runtime]
by ViceRaid
in thread changing object's methods at runtime
by ViceRaid
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |