You are here

public function NullOutputTest::testConstructor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Output/NullOutputTest.php \Symfony\Component\Console\Tests\Output\NullOutputTest::testConstructor()

File

vendor/symfony/console/Tests/Output/NullOutputTest.php, line 19

Class

NullOutputTest

Namespace

Symfony\Component\Console\Tests\Output

Code

public function testConstructor() {
  $output = new NullOutput();
  ob_start();
  $output
    ->write('foo');
  $buffer = ob_get_clean();
  $this
    ->assertSame('', $buffer, '->write() does nothing (at least nothing is printed)');
  $this
    ->assertFalse($output
    ->isDecorated(), '->isDecorated() returns false');
}