X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F011_basic_json_w_utf8.t;h=7a84b40a9855cbd32b51a9d10a2945c322cd1b00;hb=515cb7aef8237ca6fe617d6bf8cb6a5ae02384a1;hp=a5bd3d854977ef0c66bff649d8855069815489c7;hpb=b9f532ee43570a3cb41d46ec1e08a1101e6d97b6;p=gitmo%2FMooseX-Storage.git diff --git a/t/011_basic_json_w_utf8.t b/t/011_basic_json_w_utf8.t index a5bd3d8..7a84b40 100644 --- a/t/011_basic_json_w_utf8.t +++ b/t/011_basic_json_w_utf8.t @@ -3,25 +3,22 @@ use warnings; use Test::More; +# NOTE: +# this is because JSON::XS (and Cpanel::JSON::XS) is +# the only one which really gets utf8 correct +# - SL +BEGIN { + $ENV{JSON_ANY_ORDER} = 'XS CPANEL'; + $ENV{JSON_ANY_CONFIG} = "utf8=0,canonical=1"; +} + use Test::Requires { 'Encode' => 0.01, # skip all if not installed 'JSON::Any' => 0.01, }; -BEGIN { - # NOTE: - # this is because JSON::XS (and Cpanel::JSON::XS) is - # the only one which really gets - # utf8 correct - # - SL - BEGIN { - $ENV{JSON_ANY_ORDER} = 'XS CPANEL'; - $ENV{JSON_ANY_CONFIG} = "utf8=0,canonical=1"; - } - - plan tests => 16; - use_ok('MooseX::Storage'); -} +plan tests => 16; +use_ok('MooseX::Storage'); { package Foo;