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