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