8 # Due to a bug in older versions of MakeMaker & Test::Harness, we must
9 # ensure the blib's are in @INC, else we might use the core CGI.pm
10 unshift @INC, qw( ../blib/lib ../blib/arch lib );
17 eval { require FCGI };
21 use Test::More tests => 7;
23 # Shut up "used only once" warnings.
25 () = $CGI::Fast::Ext_Request;
28 skip( 'FCGI not installed, cannot continue', 7 ) unless $fcgi;
31 ok( my $q = CGI::Fast->new(), 'created new CGI::Fast object' );
32 is( $q, $CGI::Q, 'checking to see if the object was stored properly' );
33 is( $q->param(), (), 'no params' );
35 ok( $q = CGI::Fast->new({ foo => 'bar' }), 'creating obect with params' );
36 is( $q->param('foo'), 'bar', 'checking passed param' );
38 # if this is false, the package var will be empty
39 $ENV{FCGI_SOCKET_PATH} = 0;
40 is( $CGI::Fast::Ext_Request, '', 'checking no active request' );