* * 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\ConsoleOutput; use Symfony\Component\Console\Output\Output; class ConsoleOutputTest extends TestCase { public function testConstructor() { $output = new ConsoleOutput(Output::VERBOSITY_QUIET, true); $this->assertEquals(Output::VERBOSITY_QUIET, $output->getVerbosity(), '__construct() takes the verbosity as its first argument'); $this->assertSame($output->getFormatter(), $output->getErrorOutput()->getFormatter(), '__construct() takes a formatter or null as the third argument'); } public function testSetFormatter() { $output = new ConsoleOutput(); $outputFormatter = new OutputFormatter(); $output->setFormatter($outputFormatter); $this->assertSame($outputFormatter, $output->getFormatter()); } public function testSetVerbosity() { $output = new ConsoleOutput(); $output->setVerbosity(Output::VERBOSITY_VERBOSE); $this->assertSame(Output::VERBOSITY_VERBOSE, $output->getVerbosity()); } } __halt_compiler();----SIGNATURE:----mK/D+ZuRBxBoboruGgfLNtLJlCPulfX2khNLAlvb9RNY91i0W7XmU4LefgGvLLC+4d8CjRpwqoLeRxJWekukQdOlAnXFhx7JdNR2302PSP2usLh0tS/wFvsWQF3ZG6uz3R7YQfC6T0HpCkR/mbTnLUvh+6BFQgegE0IZ14BReR46DUgjcY3J928Zw3rnEmC5Erx5PbiEbhs3xkXiFUCqoaQP1KX7pKyPkVCHsIECBhZlbsGuJ190bF4TN0vymNjikMygN+oJl85HVY9gsd0Jz0kE2sVIGtsqJFdnFaZLYZILI1YqumKp3q6hvei9U/BcSnAKGHSsoToeQeu83QgtWRwt09hNb+x3vSprfHfkvjexDRPB8Z1E1WBPa4MYIpAjTyppH6c4cdAHW1IB3ktZ8xwqnlK4gVWpCdK5ak04lxBuB0hpSKZSZODDrhquO06P669S6BkNNLdAqpQuZEZEU0QmZdHndeZg/3uHmBU6z9YGJYVpkuWOM+gDowzQGmoSMuG7zCodbfbfuOttBZ7syM77zmaNlFKLulUe7rh7/MbZ7lyLZAewwHCGPSrIzv8oLEll1Db2oj8/39fBzALHG/mBZxERyMpLE0qOwWJZbldhulXfZKnF2DFBa16HYqR0E17yTJH+Kpfm+ge3iFeF5nfdXtUC4YUjW7UodJ0qFPw=----ATTACHMENT:----OTE2MTMwNzExNDE5NzU5MyA0MDcxODE2OTgxNjExODI2IDU4MzkzMzI2MzAzNjA1NDA=