summaryrefslogtreecommitdiff
path: root/t/04-xml.t
diff options
context:
space:
mode:
Diffstat (limited to 't/04-xml.t')
-rw-r--r--t/04-xml.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/04-xml.t b/t/04-xml.t
index 5281e46..9ec5924 100644
--- a/t/04-xml.t
+++ b/t/04-xml.t
@@ -1,5 +1,10 @@
#!perl
-use Test::Most 'no_plan','die';
+use Test::Most 'die';
+BEGIN {
+eval 'use XML::LibXML';
+plan skip_all => 'XML::LibXML needed for this test' if $@;
+}
+plan tests => 2;
use strict;
use warnings;
use Tree::Template::Declare options => {builder => '+LibXML'};