1--TEST-- 2Test ob_clean() function : basic functionality 3--FILE-- 4<?php 5echo "*** Testing ob_clean() : basic functionality ***\n"; 6 7// Zero arguments 8echo "\n-- Testing ob_clean() function with Zero arguments --\n"; 9var_dump( ob_clean() ); 10 11ob_start(); 12echo "You should never see this."; 13var_dump(ob_clean()); 14 15echo "Ensure the buffer is still active after the clean."; 16$out = ob_get_clean(); 17var_dump($out); 18 19echo "Done"; 20?> 21--EXPECTF-- 22*** Testing ob_clean() : basic functionality *** 23 24-- Testing ob_clean() function with Zero arguments -- 25 26Notice: ob_clean(): Failed to delete buffer. No buffer to delete in %s on line %d 27bool(false) 28string(61) "bool(true) 29Ensure the buffer is still active after the clean." 30Done 31