File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / spl / tests / SplDoublylinkedlist_offsetunset_last.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:01 2012 UTC (12 years, 6 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

--TEST--
SPL: SplDoublyLinkedList : offsetUnset - last 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(2);
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%(2) "oh"
    [1]=>
    %string|unicode%(3) "hai"
  }
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>