summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplDoublyLinkedList_isEmpty_not-empty-with-parameter.phpt
blob: 6ea9198bf076099e24912ccffa6f0737c8975158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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();
	
	// Add some items to the list
	$dll->push(1);
	$dll->push(2);
	$dll->push(3);
	//var_dump($dll);
	
	var_dump($dll->isEmpty("test"));
?>
--EXPECTF--
Warning: SplDoublyLinkedList::isEmpty() expects exactly 0 parameters, %d given in %s
NULL