You are here

public function DebugTest::testDisablesOutput in Plug 7

File

lib/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);
}