php-src/ext/spl/tests/SplDoublyLinkedList_push_missing_parameter.phpt

14 lines
356 B
Plaintext
Raw Normal View History

2009-05-23 15:37:36 +00:00
--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