initial commit
[Net-VoIP_Innovations.git] / t / 62-getDIDs.t
1 #!/usr/bin/perl -w
2
3 #BEGIN {
4 #  $Net::HTTPS::Any::skip_NetSSLeay = 1;
5 #  $Net::HTTPS::Any::skip_NetSSLeay = 1;
6 #}
7
8 use Test::More;
9
10 require 't/lib/test_account.pl';
11 require Net::VoIP_Innovations;
12
13 my($login, $password) = test_account_or_skip();
14 plan tests => 1;
15
16
17 my $debug = $ENV{TEST_VERBOSE};
18
19 my $gp = Net::VoIP_Innovations->new( 'login'    => $login,
20                                      'password' => $password,
21                                      #'debug'    => $debug,
22                                    );
23 my $return = $gp->getDIDs(
24   'state'   => 'CA',
25   'lata'    => '722',
26   #'npa'   => '415',
27   'orderby' => 'ORDER BY npa', #?
28 );
29
30 use Data::Dumper;
31 diag( Dumper($return) ); # if $debug;
32
33 #XXX test some things about the return...
34 ok( $return, 'getDIDs returned something' );