1--TEST--
2Test ob_get_level() function : basic functionality
3--FILE--
4<?php
5echo "*** Testing ob_get_level() : basic functionality ***\n";
6
7// Zero arguments
8echo "\n-- Testing ob_get_level() function with Zero arguments --\n";
9var_dump(ob_get_level());
10
11ob_start();
12var_dump(ob_get_level());
13
14ob_start();
15var_dump(ob_get_level());
16
17ob_end_flush();
18var_dump(ob_get_level());
19
20ob_end_flush();
21var_dump(ob_get_level());
22
23ob_end_flush();
24var_dump(ob_get_level());
25
26
27echo "Done";
28?>
29--EXPECTF--
30*** Testing ob_get_level() : basic functionality ***
31
32-- Testing ob_get_level() function with Zero arguments --
33int(0)
34int(1)
35int(2)
36int(1)
37int(0)
38
39Notice: ob_end_flush(): Failed to delete and flush buffer. No buffer to delete or flush in %s on line %d
40int(0)
41Done
42