summaryrefslogtreecommitdiff
path: root/tests/output/ob_get_level_error_001.phpt
blob: 4719bdd72e34ee17542f6430dc8119bf03f9bfa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--TEST--
Test ob_get_level() function : error conditions 
--FILE--
<?php
/* Prototype  : proto int ob_get_level(void)
 * Description: Return the nesting level of the output buffer 
 * Source code: main/output.c
 * Alias to functions: 
 */

echo "*** Testing ob_get_level() : error conditions ***\n";

// One argument
echo "\n-- Testing ob_get_level() function with one argument --\n";
$extra_arg = 10;;
var_dump( ob_get_level($extra_arg) );

echo "Done";
?>
--EXPECTF--
*** Testing ob_get_level() : error conditions ***

-- Testing ob_get_level() function with one argument --

Warning: ob_get_level() expects exactly 0 parameters, 1 given in %s on line 13
NULL
Done