in reply to Re: Where can I buy an $r with which to test Apache2::Cookie?
in thread Where can I buy an $r with which to test Apache2::Cookie?
Thanks for the reply. Are you sure Apache2::RequestUtil adds that method? Is there some secret way in which you need to load it for that to happen?
I did try that, because I believe that's what the docs say, but as far as I could tell the docs are wrong.
Sorry for the obscurantist test comment last time, here's a better one that actually passes:
use strict; use warnings; use Test::More tests => 1; use Apache2::Cookie 2.08; use Apache2::RequestRec 2.0; use Apache2::RequestUtil 2.0; eval { my $r = Apache2::RequestRec->new(); }; like( $@, qr/Can't locate object method "new" via package "Apache2::RequestR +ec"/ );
|
|---|