summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplDoublyLinkedList_current_empty.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/SplDoublyLinkedList_current_empty.phpt')
-rw-r--r--ext/spl/tests/SplDoublyLinkedList_current_empty.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/spl/tests/SplDoublyLinkedList_current_empty.phpt b/ext/spl/tests/SplDoublyLinkedList_current_empty.phpt
new file mode 100644
index 0000000..558504b
--- /dev/null
+++ b/ext/spl/tests/SplDoublyLinkedList_current_empty.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Run current() function on an empty SplDoublyLinkedList.
+--CREDITS--
+Philip Norton philipnorton42@gmail.com
+--FILE--
+<?php
+
+$list = new SplDoublyLinkedList();
+var_dump($list->current());
+
+?>
+--EXPECT--
+NULL \ No newline at end of file