t/moose/no_moose.t
raw| 1 | use strict; |
| 2 | use warnings; |
| 3 | use FindBin; |
| 4 | use lib "$FindBin::Bin/../../"; |
| 5 | use Test::More; |
| 6 | use t::Util; |
| 7 | |
| 8 | #EXPECTED: syntax error .+?, near "extends qw/Bar/" |
| 9 | test('no moose', <<'END', {Moose => 0, Foo => 0}); |
| 10 | use Moose; |
| 11 | extends qw/Foo/; |
| 12 | no Moose; |
| 13 | extends qw/Bar/; # this should be from something else |
| 14 | END |
| 15 | |
| 16 | done_testing; |