I have some var_dumps in my php code (i understand what there must be none in the end, but still), and while tests are running they outputs non necessary information to cons
You can set the setOutputCallback to a do nothing function. The effect is to suppress any output printed in the test or in the tested class.
As Example:
namespace Acme\DemoBundle\Tests;
class NoOutputTest extends \PHPUnit_Framework_TestCase {
public function testSuppressedOutput()
{
// Suppress output to console
$this->setOutputCallback(function() {});
print '*';
$this->assertFalse(false, "Don't see the *");
}
}
You can find some reference in the doc
Hope this help