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(NULL,2));
8} catch (OutOfRangeException $e) {
9	echo "Exception: ".$e->getMessage()."\n";
10}
11?>
12--EXPECTF--
13Exception: Offset invalid or out of range
14