X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fpp.t;h=9aa020f325363e9429dd4ad6ffd126639a2e2fad;hb=b4d741691e1fcefe51c5f1d563d23e3951c2a30c;hp=1d213fbe47d9cf90f49c43c07bbbe5119067f2ee;hpb=f01f85acffcfa5de6df9df81f0c335ec28833558;p=p5sagit%2FJSON-MaybeXS.git diff --git a/t/pp.t b/t/pp.t index 1d213fb..9aa020f 100644 --- a/t/pp.t +++ b/t/pp.t @@ -1,7 +1,12 @@ use strict; use warnings; -use Test::Without::Module 'Cpanel::JSON::XS', 'JSON::XS'; +# hide Cpanel::JSON::XS, JSON::XS +use lib map { + my ( $m, $c ) = ( $_, qq{die "Can't locate $_ (hidden)\n"} ); + sub { return unless $_[1] eq $m; open my $fh, "<", \$c; return $fh } +} qw{Cpanel/JSON/XS.pm JSON/XS.pm}; + use if !eval { require JSON::PP; 1; }, 'Test::More', skip_all => 'No JSON::PP'; use Test::More 0.88; use JSON::MaybeXS;