| 1 |
#! /usr/bin/env perl |
| 2 |
use 5.006; |
| 3 |
use strict; |
| 4 |
use warnings FATAL => 'all'; |
| 5 |
use Test::More; |
| 6 |
|
| 7 |
use FindBin qw($Bin); |
| 8 |
use lib "$Bin/../../../../../lib"; |
| 9 |
|
| 10 |
BEGIN { |
| 11 |
use_ok("LWP::Authen::OAuth2::ServiceProvider::Yahoo") || print "Bail out!\n"; |
| 12 |
use LWP::Authen::OAuth2; |
| 13 |
|
| 14 |
my $oauth2 = LWP::Authen::OAuth2->new( |
| 15 |
client_id => "test", |
| 16 |
client_secret => "test", |
| 17 |
service_provider => "Yahoo", |
| 18 |
redirect_url => "oob", |
| 19 |
); |
| 20 |
isa_ok($oauth2, "LWP::Authen::OAuth2"); |
| 21 |
} |
| 22 |
|
| 23 |
done_testing(); |