summaryrefslogtreecommitdiff
path: root/ext/spl/tests/spl_heap_recoverfromcorruption_arguments.phpt
blob: 823c809f8256a5846b33a43751e45777a4f820b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
SPL: SplHeap check no arguments to be accepted on recoverFromCorruption
--CREDITS--
Rohan Abraham (rohanabrahams@gmail.com)
TestFest London May 2009
--FILE--
<?php
  $h = new SplMaxHeap();
  //Line below should throw a warning as no args are expected
  $h->recoverFromCorruption("no args");
?>
--EXPECTF--

Warning: SplHeap::recoverFromCorruption() expects exactly 0 parameters, 1 given in %s on line %d