mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
15 lines
318 B
Plaintext
15 lines
318 B
Plaintext
|
--TEST--
|
||
|
SplDoublyLinkedList::top() - pass in an unexpected null parameter
|
||
|
--CREDITS--
|
||
|
PHPNW Testfest 2009 - Adrian Hardy
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$list = new SplDoublyLinkedList();
|
||
|
$list->push("top");
|
||
|
$list->top(null);
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: SplDoublyLinkedList::top() expects exactly 0 parameters, 1 given in %s on line %d
|