php-src/tests/output/ob_end_flush_error_001.phpt
2008-12-18 15:20:47 +00:00

28 lines
687 B
PHP

--TEST--
Test ob_end_flush() function : error conditions
--FILE--
<?php
/* Prototype : proto bool ob_end_flush(void)
* Description: Flush (send) the output buffer, and delete current output buffer
* Source code: main/output.c
* Alias to functions:
*/
echo "*** Testing ob_end_flush() : error conditions ***\n";
// One argument
echo "\n-- Testing ob_end_flush() function with one argument --\n";
$extra_arg = 10;;
var_dump( ob_end_flush($extra_arg) );
echo "Done";
?>
--EXPECTF--
*** Testing ob_end_flush() : error conditions ***
-- Testing ob_end_flush() function with one argument --
Warning: ob_end_flush() expects exactly 0 parameters, 1 given in %s on line 13
NULL
Done