PHP command line output buffer outputs regardless of buffer settings -


I have some classes. I am writing unit tests for which they have resonance. I want to suppress this output And thought 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 (); }   

I have not availed any benefits like ob_start (false, 0, true), and ob_end_clean () .

What am I missing?

you want something like

     

Comments