--TEST-- Check that SplDoublyLinkedList::add throws an exception with an invalid offset argument --FILE-- add(12,'Offset 12 should not exist')); } catch (OutOfRangeException $e) { echo "Exception: ".$e->getMessage()."\n"; } ?> --EXPECTF-- Exception: Offset invalid or out of range