summaryrefslogtreecommitdiff
path: root/devel-utf8/tests/itjs.t
diff options
context:
space:
mode:
authorNathan Gass2012-03-22 18:23:53 +0000
committerNathan Gass2012-03-22 18:23:53 +0000
commit338cda9000356404cf2865d61787607acf67fe98 (patch)
tree3924b3e2e12a5d5ea3b40890477d5e070498543c /devel-utf8/tests/itjs.t
parente0a89b408041d25b18090bfc3d596627ea930507 (diff)
downloaditools-338cda9000356404cf2865d61787607acf67fe98.tar.gz
itools-338cda9000356404cf2865d61787607acf67fe98.tar.bz2
itools-338cda9000356404cf2865d61787607acf67fe98.zip
last remains of 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'
-);
-
-?>