diff options
Diffstat (limited to 'test/it.t')
-rwxr-xr-x | test/it.t | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -426,6 +426,9 @@ foreach ([ 'a' => 'ä', 'e' => 'ë', 'i' => 'ï', 'o' => 'ö', 'u' => 'ü' ] as foreach (array($dummy, false, true, null, 1, "a", "Ä", "/", array()) as $var) is(it::json_decode(it::json_encode($var)), $var); +is(it::json_decode('{"foo":"bar"}')->foo, "bar"); +is(it::json_decode('{"foo":"bar"}', ['assoc' => true])['foo'], "bar"); + is(it::sort(array("2!","19!","1!")), array("1!", "19!", "2!")); is(it::sort(array("2!","19!","1!"), "r"), array("2!", "19!", "1!")); |