blob: 4dce4db8debcc0973e89263be49005da4f561921 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"
}
}
|