2 use warnings FATAL => 'all';
3 use Test::Without::Module 'Cpanel::JSON::XS';
4 use Test::Without::Module 'JSON::XS';
5 use Test::Without::Module 'JSON::PP';
8 ok(!eval { require JSON::MaybeXS; 1 }, 'Class failed to load');
10 # Test::Without::Module always causes 'did not return a true value' errors
13 $@, qr{Cpanel/JSON/XS.pm did not.*JSON/XS.pm did not.*JSON/PP.pm did not}s,