summaryrefslogtreecommitdiff
path: root/devel-utf8/tests/itjs.t
diff options
context:
space:
mode:
authorNathan Gass2012-03-22 18:19:43 +0000
committerNathan Gass2012-03-22 18:19:43 +0000
commit1336ce6ac3baacd1cecbf776cfafa81f8d025272 (patch)
tree3924b3e2e12a5d5ea3b40890477d5e070498543c /devel-utf8/tests/itjs.t
parentd59a4921188753dbe4c0161081755a28112c3ef6 (diff)
downloaditools-1336ce6ac3baacd1cecbf776cfafa81f8d025272.tar.gz
itools-1336ce6ac3baacd1cecbf776cfafa81f8d025272.tar.bz2
itools-1336ce6ac3baacd1cecbf776cfafa81f8d025272.zip
Wrong branch itools/live/devel-utf8 removed
Diffstat (limited to 'devel-utf8/tests/itjs.t')
-rwxr-xr-xdevel-utf8/tests/itjs.t50
1 files changed, 0 insertions, 50 deletions
diff --git a/devel-utf8/tests/itjs.t b/devel-utf8/tests/itjs.t
deleted file mode 100755
index f616ced..0000000
--- a/devel-utf8/tests/itjs.t
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/www/server/bin/php -qC
-<?php
-
-# Tests for itjs.class, currently only itjs::serialize()
-
-$_GET['aa'] = 1;
-
-is(
- itjs::serialize(array()),
- '[]',
- 'empty array'
-);
-
-is(
- itjs::serialize(array(0, "0")),
- '[0, 0]',
- 'number 0'
-);
-
-is(
- itjs::serialize(array(null, "", false)),
- '["", "", false]',
- 'null, empty string, false'
-);
-
-is(
- itjs::serialize(array(42, "42", 42.5, "042")),
- '[42, 42, "42.5", "042"]',
- 'numbers'
-);
-
-is(
- itjs::serialize(array('foo' => "bar", "qux", 42 => "quux")),
- "{foo:\"bar\",\n'0':\"qux\",\n'42':\"quux\"}",
- 'key-value pairs'
-);
-
-is(
- itjs::serialize(array('foo' => array('bar' => array("qux", 42)))),
- '{foo:{bar:["qux", 42]}}',
- 'nested arrays'
-);
-
-is(
- itjs::serialize(array('import' => array('function' => array(true, 42)))),
- '{\'import\':{\'function\':[true, 42]}}',
- 'keywords'
-);
-
-?>