diff options
Diffstat (limited to 'ext/spl/tests/SplDoublyLinkedList_unshift_missing_parameter.phpt')
-rw-r--r-- | ext/spl/tests/SplDoublyLinkedList_unshift_missing_parameter.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/spl/tests/SplDoublyLinkedList_unshift_missing_parameter.phpt b/ext/spl/tests/SplDoublyLinkedList_unshift_missing_parameter.phpt new file mode 100644 index 0000000..18afa03 --- /dev/null +++ b/ext/spl/tests/SplDoublyLinkedList_unshift_missing_parameter.phpt @@ -0,0 +1,13 @@ +--TEST-- +Check that SplDoublyLinkedList::unshift 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->unshift()); +?> +--EXPECTF-- +Warning: SplDoublyLinkedList::unshift() expects exactly 1 parameter, 0 given in %s on line %d +NULL + |