File: unsupported.t

package info (click to toggle)
libxml-rss-libxml-perl 0.3105%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 484 kB
  • sloc: perl: 4,940; xml: 41; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use strict;
use Test::More (tests => 3);

BEGIN { use_ok("XML::RSS::LibXML") }

my $xml = XML::RSS::LibXML->new;
$xml->{output} = '1.5';
eval { $xml->as_string };
ok($@, "formatting non-supported version 1.5");

delete $xml->{output};
$xml->{version} = '1.5';
eval { $xml->as_string };
ok($@, "formatting non-supported version 1.5");