summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplDoublyLinkedList_offsetGet_param_array.phpt
blob: b2bc4445502c075a047564c0aaef5c7edccefa8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
SplDoublyLinkedList::offsetGet() with 1st parameter passed as array.
--CREDITS--
PHPNW Test Fest 2009 - Jordan Hatch
--FILE--
<?php

$array = new SplDoublyLinkedList( );

$get = $array->offsetGet( array( 'fail' ) );

?>
--EXPECTF--
Fatal error: Uncaught OutOfRangeException: Offset invalid or out of range in %s
Stack trace:
#0 %s
#1 {main}
  thrown in %s on line %d