use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Formatter\NullOutputFormatter;
use Symfony\Component\Console\Formatter\OutputFormatter;
use Symfony\Component\Console\Output\NullOutput;
use Symfony\Component\Console\Output\Output;
use Symfony\Component\Console\Output\OutputInterface;
class NullOutputTest extends TestCase
{ 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'
);
} public function testVerbosity() {