mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
26 lines
511 B
PHP
26 lines
511 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);
|
|
?>
|
|
--EXPECT--
|
|
object(SplDoublyLinkedList)#1 (2) {
|
|
["flags":"SplDoublyLinkedList":private]=>
|
|
int(0)
|
|
["dllist":"SplDoublyLinkedList":private]=>
|
|
array(2) {
|
|
[0]=>
|
|
string(3) "hai"
|
|
[1]=>
|
|
string(4) "thar"
|
|
}
|
|
}
|