Re: [Apache-dispatch-devel] Fwd: SF.net SVN: apache-dispatch: [50]trunk
Brought to you by:
geoffrey_young,
phred_moyer
|
From: Fred M. <fr...@ta...> - 2006-08-09 04:42:36
|
>> just this one last nit.
>
> hmph, sounds like import() is up to something funky.
>
> maybe just fully qualify Apache::TestRequest::GET_OK($url) in the code?
>
Indeed. Same thing happens with a fully qualified call. Should I cc this to the Apache::Test list?
----------------------------
use strict;
use warnings FATAL => 'all';a
use Test::More;
require Apache::Test;
Apache::Test->import(qw(have_lwp));
require Apache::TestRequest;
Apache::TestRequest->import(qw(GET_OK));
plan skip_all => 'test library dependencies not met'
unless eval { have_lwp() };
plan tests => 1;
my $uri = '/plain';
#ok Apache::TestRequest::GET_OK $uri;
ok GET_OK $uri;
-----------------------------
waiting 60 seconds for server to start: .
waiting 60 seconds for server to start: ok (waited 0 secs)
server localhost:8529 started
t/01get_ok_outside_eval....1..1
Can't call method "GET_OK" without a package or object reference at t/01get_ok_outside_eval.t line 18.
-----------------------------------
|