php-src/ext/spl/tests/spl_heap_recoverfromcorruption_arguments.phpt
2009-05-17 15:24:08 +00:00

16 lines
415 B
PHP

--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