summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplDoublyLinkedList_push_missing_parameter.phpt
blob: 26fb3a9b8d63672cf7dd5b4bdabfb204c9d7c0bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Check that SplDoublyLinkedList::push generate a warning and return NULL with missing param
--CREDITS--
PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
--FILE--
<?php
$dll = new SplDoublyLinkedList();
var_dump($dll->push());
?>
--EXPECTF--
Warning: SplDoublyLinkedList::push() expects exactly 1 parameter, 0 given in %s on line %d
NULL