11 |
ok $dom->isa ('Message::IF::DOMImplementation'); |
ok $dom->isa ('Message::IF::DOMImplementation'); |
12 |
|
|
13 |
## AUTOLOAD test |
## AUTOLOAD test |
14 |
ok $dom->can ('create_uri_reference'); |
{ |
15 |
my $uri = $dom->create_uri_reference ('http://www.uri.test/'); |
ok $dom->can ('create_uri_reference') ? 1 : 0, 1, "can create_uri_reference"; |
16 |
ok UNIVERSAL::isa ($uri, 'Message::IF::URIReference'); |
my $uri = $dom->create_uri_reference ('http://www.uri.test/'); |
17 |
|
ok UNIVERSAL::isa ($uri, 'Message::IF::URIReference'); |
18 |
|
} |
19 |
|
|
20 |
|
{ |
21 |
|
ok $dom->can ('create_document') ? 1 : 0, 1, "can create_document"; |
22 |
|
my $doc = $dom->create_document; |
23 |
|
ok UNIVERSAL::isa ($doc, 'Message::IF::Document'); |
24 |
|
} |
25 |
|
|
26 |
|
{ |
27 |
|
ok $dom->can ('create_document_type') ? 1 : 0, 1, "can create_document_type"; |
28 |
|
my $doc = $dom->create_document_type; |
29 |
|
ok UNIVERSAL::isa ($doc, 'Message::IF::DocumentType'); |
30 |
|
} |
31 |
|
|
32 |
ok $dom->can ('no_such_method') ? 1 : 0, 0; |
ok $dom->can ('no_such_method') ? 1 : 0, 0; |
33 |
my $something_called = 0; |
my $something_called = 0; |