remove attempted apache hack in tests

This commit is contained in:
Graham Knop 2009-09-25 11:33:20 -05:00
parent 549f9ce650
commit 9b74ab24cf

View file

@ -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);