php-src/ext/spl/tests/SplDoublyLinkedList_count.phpt
2009-05-23 15:38:18 +00:00

13 lines
337 B
PHP

--TEST--
Check that SplDoublyLinkedList::count fails if parameter passed in
--CREDITS--
Rob Knight <themanhimself@robknight.org.uk> PHPNW Test Fest 2009
--FILE--
<?php
$list = new SplDoublyLinkedList();
$c = $list->count('foo');
?>
--EXPECTF--
Warning: SplDoublyLinkedList::count() expects exactly 0 parameters, 1 given in %s on line 4