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([],2)); 8} catch (TypeError $e) { 9 echo "Exception: ".$e->getMessage()."\n"; 10} 11?> 12--EXPECT-- 13Exception: SplDoublyLinkedList::add(): Argument #1 ($index) must be of type int, array given 14