summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplDoublyLinkedList_push_missing_parameter.phpt
blob: 057751c2eb4f8bc62309ac6ab4aaf1cf03a0189a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--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