mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
16 lines
341 B
PHP
16 lines
341 B
PHP
--TEST--
|
|
SplDoublyLinkedList offsetSet throws error on no parameters
|
|
--CREDITS--
|
|
PHPNW TestFest 2009 - Ben Longden
|
|
--FILE--
|
|
<?php
|
|
$list = new SplDoublyLinkedList();
|
|
$a = $list->offsetSet();
|
|
if(is_null($a)) {
|
|
echo 'PASS';
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Warning: SplDoublyLinkedList::offsetSet() expects exactly 2 parameters, 0 given in %s on line %d
|
|
PASS
|