File: 03-providers.t

package info (click to toggle)
libnet-openid-consumer-perl 1.13-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 312 kB
  • sloc: perl: 2,397; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/perl
use strict;
use warnings;
use Net::OpenID::Consumer;
use Test::More;

my @tests = qw(
    https://www.google.com/accounts/o8/id 
    http://openid.aol.com/joe
    http://test.myopenid.com/
    http://flickr.com/test/
    http://test.wordpress.com/
    http://test.blogspot.com/
    http://test.myvidoop.com/
    http://claimid.com/test/
    http://lj.livejournal.com/
    http://me.yahoo.com
); #    http://technorati.com/people/technorati/test


{
    use integer;
    plan tests => scalar @tests;
}

for my $url ( @tests ) {
    my $csr = Net::OpenID::Consumer->new;
    my $identity = $csr->claimed_identity($url);
    ok $identity, "Got a claimed identity for $url";
}