I have some classes. I am writing unit tests for which they have resonance. I want to suppress this output And thought I have not availed any benefits like What am I missing? you want something like ob_start () and
ob_clean () would be enough, but they have no effect.
Public Function Testing Some () {ob_start (); $ Square = new MyClass (); $ Square & gt; Method (); Ob_clean (); }
ob_start (false, 0, true), and
ob_end_clean () .
Comments
Post a Comment