I have several classes, I write unit tests for which there are echoes. I want to suppress this conclusion and thought that ob_start() and ob_clean() would be enough, but they have no effect.
public function testSomething (){ ob_start(); $class = new MyClass(); $class->method(); ob_clean(); }
I also tried options like ob_start(false, 0, true); and ob_end_clean() , to no avail.
What am I missing?
php output-buffering
bcmcfc
source share