mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
26 lines
552 B
PHP
26 lines
552 B
PHP
--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"
|
|
}
|
|
}
|