From 9b74ab24cfafbdd1f45b2482b2f6f10a75caa342 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Fri, 25 Sep 2009 11:33:20 -0500 Subject: [PATCH] remove attempted apache hack in tests --- t/lib/WebGUI/Test.pm | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/t/lib/WebGUI/Test.pm b/t/lib/WebGUI/Test.pm index 9e67a196b..820b92373 100644 --- a/t/lib/WebGUI/Test.pm +++ b/t/lib/WebGUI/Test.pm @@ -26,25 +26,6 @@ use strict; use warnings; use base qw(Test::Builder::Module); -BEGIN { - # http://thread.gmane.org/gmane.comp.apache.apreq/3378 - # http://article.gmane.org/gmane.comp.apache.apreq/3388 - if ( $^O eq 'darwin' && $Config::Config{osvers} lt '8.0.0' ) { - unshift @INC, sub { - return undef unless $_[1] =~ m/^Apache2|APR/; - return IO::File->new( $INC{'Class/Null.pm'}, &IO::File::O_RDONLY ); - #my $buffer = '1'; - #open my $fh, '<', \$buffer; - #return $fh; - }; - - no warnings 'redefine'; - *Apache2::Const::OK = sub () { 0 }; - *Apache2::Const::DECLINED = sub () { -1 }; - *Apache2::Const::NOT_FOUND = sub () { 404 }; - } -} - use Test::MockObject; use Test::MockObject::Extends; use Clone qw(clone);