[r389]: SOAP-Transport-TCP / trunk / t / TCP.t  Maximize  Restore  History

Download this file

21 lines (16 with data), 516 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
use strict;
use Test::More tests => 7;
use_ok qw(SOAP::Transport::TCP);
my $transport;
ok $transport = SOAP::Transport::TCP::Client->new(
endpoint => 'tcp://127.0.0.1:0'
), 'new()';
is $transport, $transport->new(), '$transport->new() returns $transport';
{
no warnings qw(uninitialized);
$transport->send_receive();
}
ok ! $transport->is_success(), 'is_success() is false';
like $transport->status(), qr{ Cannot }x;
like $transport->message(), qr{ Cannot }x;
like $transport->code(), qr{ Cannot }x;