add :legacy option (from http://paste.scsys.co.uk/433777)
[p5sagit/JSON-MaybeXS.git] / t / none.t
CommitLineData
3be1e192 1use strict;
2use warnings FATAL => 'all';
3use Test::Without::Module 'Cpanel::JSON::XS';
16205c4a 4use Test::Without::Module 'JSON::XS';
3be1e192 5use Test::Without::Module 'JSON::PP';
6use Test::More;
7
8ok(!eval { require JSON::MaybeXS; 1 }, 'Class failed to load');
9
10# Test::Without::Module always causes 'did not return a true value' errors
11
12like(
16205c4a 13 $@, qr{Cpanel/JSON/XS.pm did not.*JSON/XS.pm did not.*JSON/PP.pm did not}s,
14 'All errors reported'
3be1e192 15);
16
17done_testing;