Commits

Anonymous committed eee17e9

Test when file doesn't exist

Comments (0)

Files changed (1)

 use Test;
-BEGIN { plan tests => 4 };
+BEGIN { plan tests => 5 };
 use XML::LibXML;
 ok(1);
 
 };
 ok($@);
 
+eval {
+    $parser->parse_file("does_not_exist.xml");
+};
+ok($@);
+
 # warn "doc is: ", $doc->toString, "\n";