diff options
Diffstat (limited to 't/02-xslt.t')
-rw-r--r-- | t/02-xslt.t | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/02-xslt.t b/t/02-xslt.t index e47572b..49e617a 100644 --- a/t/02-xslt.t +++ b/t/02-xslt.t @@ -1,4 +1,10 @@ #!perl +package main; +use Test::Most 'die'; +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 $@; +} package Copy;{ use Tree::Transform::XSLTish; @@ -24,12 +30,13 @@ tree_rule match => '*', priority => 0, action => sub { } package main; -use Test::Most 'no_plan','die'; use strict; 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 } |