summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplDoublyLinkedList_offsetGet_missing_param.phpt
blob: beffe7ad87eee9c1197dd1dec9557f9bfcf8f1fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Tests that the offsetGet() method throws an error when no argument is sent
--CREDITS--
PHPNW Test Fest 2009 - Rick Ogden
--FILE--
<?php
$dll = new SplDoublyLinkedList();
$dll->push(1);
$dll->push(2);

var_dump($dll->offsetGet());
?>
--EXPECTF--
Warning: SplDoublyLinkedList::offsetGet() expects exactly 1 parameter, 0 given in %s on line %d
NULL