mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
16 lines
341 B
Plaintext
16 lines
341 B
Plaintext
|
--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
|