diff options
Diffstat (limited to 'ext/spl/tests/SplDoublyLinkedList_isEmpty_empty-with-parameter.phpt')
-rw-r--r-- | ext/spl/tests/SplDoublyLinkedList_isEmpty_empty-with-parameter.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/spl/tests/SplDoublyLinkedList_isEmpty_empty-with-parameter.phpt b/ext/spl/tests/SplDoublyLinkedList_isEmpty_empty-with-parameter.phpt new file mode 100644 index 0000000..8d7aaf8 --- /dev/null +++ b/ext/spl/tests/SplDoublyLinkedList_isEmpty_empty-with-parameter.phpt @@ -0,0 +1,14 @@ +--TEST-- +Check that SplDoublyLinkedList->isEmpty() returns an error message when a parameter is passed. +--CREDITS-- +PHPNW Testfest 2009 - Paul Court ( g@rgoyle.com ) +--FILE-- +<?php + // Create a new Doubly Linked List + $dll = new SplDoublyLinkedList(); + + var_dump($dll->isEmpty("test")); +?> +--EXPECTF-- +Warning: SplDoublyLinkedList::isEmpty() expects exactly 0 parameters, %d given in %s +NULL
\ No newline at end of file |