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