summaryrefslogtreecommitdiff
path: root/ext/spl/tests/fixedarray_005.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/fixedarray_005.phpt')
-rw-r--r--ext/spl/tests/fixedarray_005.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/spl/tests/fixedarray_005.phpt b/ext/spl/tests/fixedarray_005.phpt
new file mode 100644
index 0000000..9ccc693
--- /dev/null
+++ b/ext/spl/tests/fixedarray_005.phpt
@@ -0,0 +1,12 @@
+--TEST--
+SPL: FixedArray: Trying to instantiate passing object to constructor parameter
+--FILE--
+<?php
+
+$b = new stdClass;
+
+$a = new SplFixedArray($b);
+
+?>
+--EXPECTF--
+Warning: SplFixedArray::__construct() expects parameter 1 to be long, object given in %s on line %d