|
NAMETest::XML::SAX - Test XML::SAX handlers SYNOPSIS use Test::XML::SAX tests => 1;
use My::XML::Filter;
my $handler = My::XML::Filter->new;
test_sax( $handler, '<foo />', '<bar/>', 'translates foo to bar' );
# ... In Another File ...
use Test::XML::SAX; use My::XML::Filter;
sub do_tests {
my $handler = My::XML::Filter->new;
test_sax( $handler, '<foo />', '<bar/>', 'translates foo to bar' );
}
test_all_sax_parsers( \&do_tests, 1 );
DESCRIPTIONThis module is for testing XML::SAX handlers. FUNCTIONSAll functions are exported.
SEE ALSOTest::More, Test::XML, XML::SAX. AUTHORDominic Mitchell, <cpan2 (at) semantico.com> COPYRIGHT AND LICENSECopyright 2002 by semantico This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|