summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplDoublyLinkedList_offsetGet_param_string.phpt
blob: a387439d161295a25ef015e34949c025ba109726 (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 string.
--CREDITS--
PHPNW Test Fest 2009 - Jordan Hatch
--FILE--
<?php

$array = new SplDoublyLinkedList( );

$get = $array->offsetGet( '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