From b7843a94485b0aecbfc2a08aa5bc6ec1b64df088 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Fri, 29 Jul 2011 21:36:04 -0500 Subject: [PATCH] fix test so that it SHOULD work, still fails (damn you, PHP unicode fail!) --- tests/Pyrus/JsonSchema/URI/uri_escapecomponent.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Pyrus/JsonSchema/URI/uri_escapecomponent.phpt b/tests/Pyrus/JsonSchema/URI/uri_escapecomponent.phpt index fb76bb3..499f3a9 100644 --- a/tests/Pyrus/JsonSchema/URI/uri_escapecomponent.phpt +++ b/tests/Pyrus/JsonSchema/URI/uri_escapecomponent.phpt @@ -13,7 +13,7 @@ for ($d = 32; $d < 128; ++$d) { $output .= "%" . strtoupper(dechex($d)); } } -$input .= urldecode("%C3%80%E3%82%A2"); +$input .= "\xc0\000\xa2\x30"; $output .= "%C3%80%E3%82%A2"; $test->assertEquals($output, $uri->escapeComponent($input), 'test');