You are here

public function DebugTest::testDisablesOutput in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Util/DebugTest.php \Doctrine\Tests\Common\Util\DebugTest::testDisablesOutput()

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Util/DebugTest.php, line 53

Class

DebugTest

Namespace

Doctrine\Tests\Common\Util

Code

public function testDisablesOutput() {
  ob_start();
  $dump = Debug::dump('foo', 2, true, false);
  $outputValue = ob_get_contents();
  ob_end_clean();
  $this
    ->assertEmpty($outputValue);
  $this
    ->assertNotSame($outputValue, $dump);
}