6 use Test::More tests => 1;
14 return if /\.(?:jpe?g|png|gif|rej|\~)$/i;
16 $File::Find::prune = 1;
20 diag "testing $_" if $ENV{'TEST_VERBOSE'};
21 eval { compile_file($_) } and return;
23 diag "error in ${File::Find::name}:\n$@";
26 ok($ok, "mason syntax is ok");
28 use HTML::Mason::Compiler;
29 use HTML::Mason::Compiler::ToObject;
34 open my $fh, '<:utf8', $file or die "couldn't open '$file': $!";
35 my $text = do { local $/; <$fh> };
36 close $fh or die "couldn't close '$file': $!";
38 my $compiler = new HTML::Mason::Compiler::ToObject;
39 $compiler->compile( comp_source => $text, name => 'my' );