summaryrefslogtreecommitdiff
path: root/ext/spl/tests/fixedarray_017.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/fixedarray_017.phpt')
-rw-r--r--ext/spl/tests/fixedarray_017.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/spl/tests/fixedarray_017.phpt b/ext/spl/tests/fixedarray_017.phpt
new file mode 100644
index 0000000..fb61ee3
--- /dev/null
+++ b/ext/spl/tests/fixedarray_017.phpt
@@ -0,0 +1,17 @@
+--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)#%d (2) {
+ [0]=>
+ string(3) "foo"
+ [1]=>
+ NULL
+}