diff options
Diffstat (limited to 'ext/spl/tests/SplDoublylinkedlist_offsetunset_first.phpt')
-rw-r--r-- | ext/spl/tests/SplDoublylinkedlist_offsetunset_first.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/spl/tests/SplDoublylinkedlist_offsetunset_first.phpt b/ext/spl/tests/SplDoublylinkedlist_offsetunset_first.phpt new file mode 100644 index 0000000..4dce4db --- /dev/null +++ b/ext/spl/tests/SplDoublylinkedlist_offsetunset_first.phpt @@ -0,0 +1,25 @@ +--TEST-- +SPL: SplDoublyLinkedList : offsetUnset - first element +--CREDITS-- +PHPNW TestFest2009 - Rowan Merewood <rowan@merewood.org> +--FILE-- +<?php +$list = new SplDoublyLinkedList(); +$list->push('oh'); +$list->push('hai'); +$list->push('thar'); +$list->offsetUnset(0); +var_dump($list); +?> +--EXPECTF-- +object(SplDoublyLinkedList)#1 (2) { + [%u|b%"flags":%u|b%"SplDoublyLinkedList":private]=> + int(0) + [%u|b%"dllist":%u|b%"SplDoublyLinkedList":private]=> + array(2) { + [0]=> + %string|unicode%(3) "hai" + [1]=> + %string|unicode%(4) "thar" + } +} |