* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Tests\Output; use PHPUnit\Framework\TestCase; 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() { $output = new NullOutput(); $this->assertSame(OutputInterface::VERBOSITY_QUIET, $output->getVerbosity(), '->getVerbosity() returns VERBOSITY_QUIET for NullOutput by default'); $output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE); $this->assertSame(OutputInterface::VERBOSITY_QUIET, $output->getVerbosity(), '->getVerbosity() always returns VERBOSITY_QUIET for NullOutput'); } public function testSetFormatter() { $output = new NullOutput(); $outputFormatter = new OutputFormatter(); $output->setFormatter($outputFormatter); $this->assertNotSame($outputFormatter, $output->getFormatter()); } public function testSetVerbosity() { $output = new NullOutput(); $output->setVerbosity(Output::VERBOSITY_NORMAL); $this->assertEquals(Output::VERBOSITY_QUIET, $output->getVerbosity()); } public function testSetDecorated() { $output = new NullOutput(); $output->setDecorated(true); $this->assertFalse($output->isDecorated()); } public function testIsQuiet() { $output = new NullOutput(); $this->assertTrue($output->isQuiet()); } public function testIsVerbose() { $output = new NullOutput(); $this->assertFalse($output->isVerbose()); } public function testIsVeryVerbose() { $output = new NullOutput(); $this->assertFalse($output->isVeryVerbose()); } public function testIsDebug() { $output = new NullOutput(); $this->assertFalse($output->isDebug()); } } __halt_compiler();----SIGNATURE:----lLMsgf/xTv5HOrBv00CqzJrvlUyfMl86lAHMUshhZEw1iyVIiA7SNvSj0KSvedL4Fsjss9t8/O7utYpq6lSEkHp/ZiBKLiVp9rDEUZPJholluBG0eD/a3KQKJtmFKxbnKbkt+MKZw1xxkVyHEEh0GTmhOTZ44l+wcv9DpC+KuGtnLN4sPnq14KiTuxs1bdBOJTx+jT16OvI1VrchMA1sFeLDu5t9UU4Qpm2iokEUKOlwJbHs67yiXH92BjQ4ffDqZIrUhLEb/HZZEr5L/5GS3lkTndOQrub+unlc9I0C5Aetl2DcaqzIjVKoTzyIGVCDoTsZqvmtVSvH6XQ6oNOPQtmRQL+KNO/C7KwDcEJb3sJ+STx730shbjtbLLszIupZTqWg2kdykYyvJ7Txqtas2RqxnXClGFYM+7YNbsjAUNDRcOFeTcyju0eCt4bQgfHMByXe7FtbfC8NKWLBJ1TXlmoOF8dHVViOCG2CsLdWhtHKjUZFTlUJIEWTpYzP26dZWS6d9Utu8X9XYjjbbT3yPI1oNp5lNjGULIUFazgQGxcrCeDWR4NgJ3jTkuX4e0Lrm9842zjBORqoxmR9AYwm5r+ckcI3ZEm/C9SDku+Or04l7n+0KhX3Rqou9kjQedGGnHhFYx1+uNdluPPN4k7LtUJhv6A81jcRlz7pcc9X5ho=----ATTACHMENT:----NDk0MDUyNjU5Mzc0ODQ2NyA2NzczMzI0MzYzOTU4NDk3IDgxMzY0MDgzNDI4MTMzNDM=