summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplDoublyLinkedList_count_param_SplDoublyLinkedList.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/SplDoublyLinkedList_count_param_SplDoublyLinkedList.phpt')
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_count_param_SplDoublyLinkedList.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/spl/tests/SplDoublyLinkedList_count_param_SplDoublyLinkedList.phpt b/ext/spl/tests/SplDoublyLinkedList_count_param_SplDoublyLinkedList.phpt
new file mode 100644
index 0000000..36c72de
--- /dev/null
+++ b/ext/spl/tests/SplDoublyLinkedList_count_param_SplDoublyLinkedList.phpt
@@ -0,0 +1,11 @@
+--TEST--
+Create a SplDoublyLinkedList, call count() and pass a SplDoublyLinkedList object as the parameter.
+--CREDITS--
+Philip Norton philipnorton42@gmail.com
+--FILE--
+<?php
+$dll = new SplDoublyLinkedList(2);
+$dll->count(new SplDoublyLinkedList(2));
+?>
+--EXPECTF--
+Warning: SplDoublyLinkedList::count() expects exactly 0 parameters, 1 given in %s on line %d \ No newline at end of file