X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=t%2F54-xml.t;fp=t%2F54-xml.t;h=45fd66e805ff48a600267cdb46b95245bd5cac48;hp=e2badee400cf7174eecb5cccf083c89c843dd155;hb=bb941906c239836c60ecce6d451cd896898f1efd;hpb=10a054f4bf2592b7c2312bda2ba563aac8ddc7ae diff --git a/t/54-xml.t b/t/54-xml.t index e2badee..45fd66e 100644 --- a/t/54-xml.t +++ b/t/54-xml.t @@ -8,7 +8,7 @@ if ( !Config::Any::XML->is_supported ) { plan skip_all => 'XML format not supported'; } else { - plan tests => 4; + plan tests => 6; } { @@ -30,3 +30,12 @@ SKIP: { ok( !$config, 'config load failed' ); ok( $@, "error thrown ($@)" ); } + +# test conf file with array ref +{ + my $file = 't/conf/conf_arrayref.xml'; + my $config = eval { Config::Any::XML->load( $file ) }; + + ok( $config, 'config loaded' ); + ok( !$@, 'no error thrown' ); +}