I use Apache::FakeRequest for testing, of course, but when I have a class that expects an argument to be isa Apache, it of course won't work. This patch fixes it. Could it make it in before mod_perl 1.28?
FWIW, I'd be happy to also provide a patch that implements import() so that users can specify what they'd like Apache::FakeRequest to inherit from. That'd make it useful for tests that expect an Apache::Request object, for example.
--- lib/Apache/FakeRequest.pm Tue Mar 21 21:22:44 2000 +++ lib/apache/FakeRequest.pm Mon Jun 16 16:13:09 2003 @@ -1,6 +1,7 @@ package Apache::FakeRequest;
$Apache::FakeRequest::VERSION = "1.00"; [EMAIL PROTECTED]::FakeRequest::ISA = qw(Apache);
sub new {
my $class = shift;Regards,
David
-- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://kineticode.com/ Yahoo!: dew7e Jabber: [EMAIL PROTECTED] Kineticode. Setting knowledge in motion.[sm]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
