1 use strict; use warnings FATAL => 'all';
2 use Test::More qw(no_plan);
9 use XML::Tags qw(one two three);
10 <one>, <two>, <three>;
14 no warnings 'once'; # this is supposed to warn, it's broken
19 use XML::Tags qw(bar);
25 <html>, <body id="spoon">, "YAY", </body>, </html>;
29 use XML::Tags qw(woo);
35 use XML::Tags qw(woo);
36 my $data = "one&two<three>four";
38 <woo>, \$data, </woo>;
43 <?xml version="1.0" encoding="UTF-8"?>;
52 join(', ', XML::Tags::to_xml_string Foo::foo()),
53 '<one>, <two>, <three>',
57 ok(!eval { Foo::bar(); 1 }, 'Death on use of unimported tag');
60 join(', ', XML::Tags::to_xml_string Foo::baz()),
66 join('', HTML::Tags::to_html_string Foo::quux),
67 '<html><body id="spoon">YAY</body></html>',
72 join('', XML::Tags::to_xml_string Foo::fleem),
73 '<woo ent="one&two">',
78 join('', XML::Tags::to_xml_string Foo::flaax),
79 '<woo>one&two<three>four</woo><woo>one&two<three>four</woo>',
80 'Escaping user data ok'
84 join('', XML::Tags::to_xml_string Foo::PI),
85 '<?xml version="1.0" encoding="UTF-8"?>',
86 'XML processing instruction'
90 join(', ', Foo::globbery),
91 't/globbery/one, t/globbery/two',
92 'real glob re-installed ok'