public function NullOutputTest::testConstructor in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
Namespace
Symfony\Component\Console\Tests\OutputCode
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');
}