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/03-html.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/03-html.t')
-rw-r--r-- | t/03-html.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/03-html.t b/t/03-html.t index 8504c90..27cac64 100644 --- a/t/03-html.t +++ b/t/03-html.t @@ -1,5 +1,10 @@ #!perl -use Test::Most 'no_plan','die'; +use Test::Most 'die'; +BEGIN { +eval 'use HTML::Element'; +plan skip_all => 'HTML::Element needed for this test' if $@; +} +plan tests => 1; use strict; use warnings; use Tree::Template::Declare options => {builder => '+HTML_Element'}; |