Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 383 Bytes
use strict;
use warnings;
use lib 't/lib';
use Test::More;
use Carp ();
ok !eval { require Bad };
local $TODO = "The user should see the actual syntax error";
like $@, qr{^Global symbol "\$info" requires explicit package name}ms;
like($@, qr{^PPI failed to find statement for '\$bar'}ms,
'Bad syntax generates stack trace');
Jump to Line
Something went wrong with that request. Please try again.