1--TEST-- 2Test ob_get_level() function : basic functionality 3--FILE-- 4<?php 5/* Prototype : proto int ob_get_level(void) 6 * Description: Return the nesting level of the output buffer 7 * Source code: main/output.c 8 * Alias to functions: 9 */ 10 11echo "*** Testing ob_get_level() : basic functionality ***\n"; 12 13// Zero arguments 14echo "\n-- Testing ob_get_level() function with Zero arguments --\n"; 15var_dump(ob_get_level()); 16 17ob_start(); 18var_dump(ob_get_level()); 19 20ob_start(); 21var_dump(ob_get_level()); 22 23ob_end_flush(); 24var_dump(ob_get_level()); 25 26ob_end_flush(); 27var_dump(ob_get_level()); 28 29ob_end_flush(); 30var_dump(ob_get_level()); 31 32 33echo "Done"; 34?> 35--EXPECTF-- 36*** Testing ob_get_level() : basic functionality *** 37 38-- Testing ob_get_level() function with Zero arguments -- 39int(0) 40int(1) 41int(2) 42int(1) 43int(0) 44 45Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush in %s on line 26 46int(0) 47Done 48