This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Initial integration of libnet-1.0703.
[perl5.git] / lib / Net / t / ph.t
CommitLineData
406c51ee
JH
1#!./perl -w
2
3use Net::Config;
4use Net::PH;
5
6unless(@{$NetConfig{ph_hosts}} && $NetConfig{test_hosts}) {
7 print "1..0\n";
8 exit 0;
9}
10
11print "1..5\n";
12
13my $i = 1;
14
15$ph = Net::PH->new(Debug => 0)
16 or (print("not ok 1\n"), exit);
17
18print "ok 1\n";
19
20$ph->fields or print "not ";
21print "ok 2\n";
22
23$ph->siteinfo or print "not ";
24print "ok 3\n";
25
26$ph->id or print "not ";
27print "ok 4\n";
28
29$ph->quit or print "not ";
30print "ok 5\n";
31