File: Fault11.t

package info (click to toggle)
libsoap-wsdl-perl 3.004-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,600 kB
  • sloc: perl: 8,433; xml: 1,769; java: 19; makefile: 15
file content (22 lines) | stat: -rw-r--r-- 593 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use Test::More tests => 6;
use strict;
use warnings;

# use_ok fails to trigger Class::Std's overloading attributes
use SOAP::WSDL::SOAP::Typelib::Fault11;

my $fault = SOAP::WSDL::SOAP::Typelib::Fault11->new({
    faultcode => 'soap:Server',
    faultstring => 'Fault message',
});

ok "$fault", 'stringification'; 

if ($fault)  { fail 'boolify' } else { pass 'boolify' }

ok ! $fault->as_bool() , 'as_bool';

is $fault->get_xmlns(), 'http://schemas.xmlsoap.org/soap/envelope/';

is $fault->get_faultcode(), 'soap:Server', 'content';
is $fault->get_faultstring(), 'Fault message', 'content';