php-src/ext/spl/tests/SplDoublyLinkedList_offsetUnset_greater_than_elements.phpt

28 lines
351 B
Plaintext
Raw Normal View History

2009-05-23 15:38:18 +00:00
--TEST--
Doubly Linked List - offsetUnset > number elements
--CREDITS--
PHPNW Test Fest 2009 - Mat Griffin
--FILE--
<?php
$ll = new SplDoublyLinkedList();
$ll->push('1');
$ll->push('2');
$ll->push('3');
try {
$ll->offsetUnset($ll->count() + 1);
var_dump($ll);
} catch(Exception $e) {
echo $e->getMessage();
}
?>
--EXPECT--
Offset out of range