]> granicus.if.org Git - php/commitdiff
MFH: Add missing test
authorEtienne Kneuss <colder@php.net>
Sun, 6 Jul 2008 23:54:36 +0000 (23:54 +0000)
committerEtienne Kneuss <colder@php.net>
Sun, 6 Jul 2008 23:54:36 +0000 (23:54 +0000)
ext/spl/tests/fixedarray_016.phpt [new file with mode: 0644]

diff --git a/ext/spl/tests/fixedarray_016.phpt b/ext/spl/tests/fixedarray_016.phpt
new file mode 100644 (file)
index 0000000..d41a24f
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+SPL: FixedArray: var_dump
+--FILE--
+<?php
+$a = new SplFixedArray(2);
+$a[0] = "foo";
+var_dump(empty($a[0]), empty($a[1]), $a);
+?>
+--EXPECTF--
+bool(false)
+bool(true)
+object(SplFixedArray)#1 (1) {
+  ["array":"SplFixedArray":private]=>
+  array(2) {
+    [0]=>
+    string(3) "foo"
+    [1]=>
+    NULL
+  }
+}