![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: SPL: SplHeap: isEmpty argument variation. 3: --FILE-- 4: <?php 5: class SplHeap2 extends SplHeap{ 6: 7: public function compare() { 8: return -parent::compare(); 9: } 10: } 11: 12: $h = new SplHeap2; 13: $h->isEmpty(1); 14: ?> 15: --EXPECTF-- 16: Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s