-#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
use IO::Socket;
use Test::More;
-use Test::WWW::Mechanize;
-plan skip_all => 'set TEST_HTTP to enable this test' unless $ENV{TEST_HTTP};
-eval "use Catalyst::Devel 1.0";
-plan skip_all => 'Catalyst::Devel required' if $@;
+eval <<_DEPS_;
+ use Test::WWW::Mechanize;
+ use Catalyst::Runtime;
+ use Catalyst::Devel;
+ use Cache::FastMmap;
+ use Catalyst::Authentication::User::Hash;
+ use Catalyst::Plugin::Session::State::Cookie;
+ use Catalyst::Plugin::Session::Store::FastMmap;
+ use Class::Accessor::Fast;
+ use Crypt::DH;
+ use ExtUtils::MakeMaker;
+ use HTML::Parser 3;
+ use LWP::UserAgent;
+ use Net::OpenID::Consumer;
+ use Net::OpenID::Server;
+ use Test::WWW::Mechanize;
+ use Net::DNS;
+ use IO::Socket::INET;
+_DEPS_
-plan "no_plan";
-# plan tests => 17;
+if ( $@ )
+{
+ plan skip_all => 'Test application dependencies not satisfied';
+}
+elsif ( not $ENV{TEST_HTTP} )
+{
+ plan skip_all => 'Set TEST_HTTP to enable this test';
+}
+else
+{
+ plan tests => 21;
+}
# One port for consumer app, one for provider.
my $consumer_port = 10000 + int rand(1 + 10000);