6 use Test::More tests => 1;
14 return if /\.(?:jpe?g|png|gif|rej|\~)$/i;
16 diag "testing $_" if $ENV{'TEST_VERBOSE'};
17 eval { compile_file($_) } and return;
19 diag "error in ${File::Find::name}:\n$@";
22 ok($ok, "mason syntax is ok");
25 use HTML::Mason::Compiler;
26 use HTML::Mason::Compiler::ToObject;
31 open my $fh, '<:utf8', $file or die "couldn't open '$file': $!";
32 my $text = do { local $/; <$fh> };
33 close $fh or die "couldn't close '$file': $!";
35 my $compiler = new HTML::Mason::Compiler::ToObject;
39 $HTML::Mason::VERSION >= 1.36? (comp_path => 'my'): (),