1--TEST-- 2Check that SplHeap::isEmpty generate a warning and returns NULL when param passed 3--CREDITS-- 4PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com) 5--FILE-- 6<?php 7 8$data_provider = array( 9 new stdClass, 10 array(), 11 true, 12 "string", 13 12345, 14 1.2345, 15 NULL 16); 17 18foreach($data_provider as $input) { 19 20 $h = new SplMaxHeap(); 21 22 var_dump($h->isEmpty($input)); 23} 24 25?> 26--EXPECTF-- 27Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d 28NULL 29 30Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d 31NULL 32 33Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d 34NULL 35 36Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d 37NULL 38 39Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d 40NULL 41 42Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d 43NULL 44 45Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s on line %d 46NULL 47 48