1--TEST--
2Check that SplDoublyLinkedList::add throws an exception with an invalid offset argument
3--FILE--
4<?php
5try {
6	$dll = new SplDoublyLinkedList();
7	var_dump($dll->add(12,'Offset 12 should not exist'));
8} catch (OutOfRangeException $e) {
9	echo "Exception: ".$e->getMessage()."\n";
10}
11?>
12--EXPECTF--
13Exception: Offset invalid or out of range
14