summaryrefslogtreecommitdiff
path: root/ext/spl/tests/array.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/array.phpt')
-rwxr-xr-xext/spl/tests/array.phpt67
1 files changed, 0 insertions, 67 deletions
diff --git a/ext/spl/tests/array.phpt b/ext/spl/tests/array.phpt
deleted file mode 100755
index 225a9f0bd1..0000000000
--- a/ext/spl/tests/array.phpt
+++ /dev/null
@@ -1,67 +0,0 @@
---TEST--
-SPL: array
---SKIPIF--
-<?php if (!extension_loaded("spl")) print "skip"; ?>
---FILE--
-<?php
-
-$ar = array(0=>0, 1=>1);
-$ar = new spl_array($ar);
-
-var_dump($ar);
-
-$ar[2] = 2;
-var_dump($ar[2]);
-var_dump($ar["3"] = 3);
-
-var_dump(array_merge($ar, array(4=>4, 5=>5)));
-
-var_dump($ar["a"] = "a");
-
-var_dump($ar);
-var_dump($ar[0]);
-var_dump($ar[6]);
-
-echo "Done\n";
-?>
---EXPECTF--
-object(spl_array)#1 (2) {
- [0]=>
- int(0)
- [1]=>
- int(1)
-}
-int(2)
-int(3)
-array(6) {
- [0]=>
- int(0)
- [1]=>
- int(1)
- [2]=>
- &int(2)
- [3]=>
- &int(3)
- [4]=>
- int(4)
- [5]=>
- int(5)
-}
-string(1) "a"
-object(spl_array)#1 (5) {
- [0]=>
- int(0)
- [1]=>
- int(1)
- [2]=>
- &int(2)
- [3]=>
- &int(3)
- ["a"]=>
- &string(1) "a"
-}
-int(0)
-
-Notice: Undefined offset: 6 in %sarray.php on line %d
-NULL
-Done