I have some classes I am writing unit tests for which have echoes in them. I want to suppress this output and thought ob_start() and ob_clean() would s
ob_start()
ob_clean()
you may want something like this
method(); // End of output // store output into variable: $output = ob_get_contents(); } ?>