mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
16 lines
355 B
PHP
16 lines
355 B
PHP
--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
|