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--EXPECT-- 13Exception: SplDoublyLinkedList::add(): Argument #1 ($index) is out of range 14