summaryrefslogtreecommitdiff
path: root/ext/spl/tests/heap_top_variation_001.phpt
blob: 9953cf9ade572e9b59f1d10458f8504f7aaab443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
SPL: SplHeap top, illegal number of args
--CREDITS--
Mark Schaschke (mark@fractalturtle.com)
TestFest London May 2009
--FILE--
<?php
$h = new SplMinHeap();
$h->insert(5);
// top doesn't take any args, lets see what happens if we give it one
$h->top('bogus');
?>
--EXPECTF--
Warning: SplHeap::top() expects exactly 0 parameters, 1 given in %s