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/04-xml.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/04-xml.t')
-rw-r--r-- | t/04-xml.t | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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'}; |