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"?>;
48 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
57 join(', ', XML::Tags::to_xml_string Foo::foo()),
58 '<one>, <two>, <three>',
62 ok(!eval { Foo::bar(); 1 }, 'Death on use of unimported tag');
65 join(', ', XML::Tags::to_xml_string Foo::baz()),
71 join('', HTML::Tags::to_html_string Foo::quux),
72 '<html><body id="spoon">YAY</body></html>',
77 join('', XML::Tags::to_xml_string Foo::fleem),
78 '<woo ent="one&two">',
83 join('', XML::Tags::to_xml_string Foo::flaax),
84 '<woo>one&two<three>four</woo><woo>one&two<three>four</woo>',
85 'Escaping user data ok'
89 join('', XML::Tags::to_xml_string Foo::PI),
90 '<?xml version="1.0" encoding="UTF-8"?>',
91 'XML processing instruction'
95 join('', HTML::Tags::to_html_string Foo::DTD),
96 '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
101 join(', ', Foo::globbery),
102 't/globbery/one, t/globbery/two',
103 'real glob re-installed ok'