diff options
author | Gianni Ceccarelli <dakkar@dechirico.(none)> | 2009-03-27 13:05:30 +0100 |
---|---|---|
committer | Gianni Ceccarelli <dakkar@dechirico.(none)> | 2009-03-27 13:05:30 +0100 |
commit | 20c06e6cc40ff498e12cc5a928919ce914ba9512 (patch) | |
tree | f5446d5ed731431d10891583d30645a9008e8ecc /t/02-xslt.t | |
parent | LibXML with namespace support, and fixed tests (diff) | |
download | Tree-Template-Declare-20c06e6cc40ff498e12cc5a928919ce914ba9512.tar.gz Tree-Template-Declare-20c06e6cc40ff498e12cc5a928919ce914ba9512.tar.bz2 Tree-Template-Declare-20c06e6cc40ff498e12cc5a928919ce914ba9512.zip |
skip tests when modules are not present
Diffstat (limited to 't/02-xslt.t')
-rw-r--r-- | t/02-xslt.t | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/t/02-xslt.t b/t/02-xslt.t index 49e617a..88fb73e 100644 --- a/t/02-xslt.t +++ b/t/02-xslt.t @@ -5,6 +5,7 @@ BEGIN { eval 'use Tree::DAG_Node::XPath; require Tree::Transform::XSLTish'; plan skip_all => 'Tree::DAG_Node::XPath and Tree::Transform::XSLTish needed for this test' if $@; } +plan tests => 1; package Copy;{ use Tree::Transform::XSLTish; @@ -35,8 +36,6 @@ use warnings; use Tree::Template::Declare options => {builder => Tree::Template::Declare::DAG_Node->new('Tree::DAG_Node::XPath') }; use Data::Dumper; -plan tests=>1; - sub Tree::DAG_Node::XPath::Root::xpath_get_root_node { return $_[0] } sub Tree::DAG_Node::XPath::Root::xpath_get_parent_node { return } |