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