1--TEST--
2Doubly Linked List - offsetUnset > number elements
3
4--CREDITS--
5PHPNW Test Fest 2009 - Mat Griffin
6
7--FILE--
8<?php
9$ll = new SplDoublyLinkedList();
10
11$ll->push('1');
12$ll->push('2');
13$ll->push('3');
14
15try {
16
17$ll->offsetUnset($ll->count() + 1);
18
19var_dump($ll);
20
21} catch(Exception $e) {
22echo $e->getMessage();
23}
24
25?>
26--EXPECT--
27Offset out of range
28