diff options
Diffstat (limited to 'ext/spl/tests/SplDoublyLinkedList_bottom_pass_array.phpt')
| -rw-r--r-- | ext/spl/tests/SplDoublyLinkedList_bottom_pass_array.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/spl/tests/SplDoublyLinkedList_bottom_pass_array.phpt b/ext/spl/tests/SplDoublyLinkedList_bottom_pass_array.phpt new file mode 100644 index 0000000..36b186d --- /dev/null +++ b/ext/spl/tests/SplDoublyLinkedList_bottom_pass_array.phpt @@ -0,0 +1,14 @@ +--TEST-- +SplDoublyLinkedList::bottom() - pass in an unexpected array parameter +--CREDITS-- +PHPNW Testfest 2009 - Adrian Hardy +--FILE-- +<?php + +$list = new SplDoublyLinkedList(); +$list->push("top"); +$list->bottom(array()); + +?> +--EXPECTF-- +Warning: SplDoublyLinkedList::bottom() expects exactly 0 parameters, 1 given in %s on line %d |
