summaryrefslogtreecommitdiff
path: root/t/04-xml.t
diff options
context:
space:
mode:
authorGianni Ceccarelli <dakkar@dechirico.(none)>2009-03-27 13:05:30 +0100
committerGianni Ceccarelli <dakkar@dechirico.(none)>2009-03-27 13:05:30 +0100
commit20c06e6cc40ff498e12cc5a928919ce914ba9512 (patch)
treef5446d5ed731431d10891583d30645a9008e8ecc /t/04-xml.t
parentLibXML with namespace support, and fixed tests (diff)
downloadTree-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/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'};