* * 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:----XnqN0HjtfN552v4VXBo4oEwfIzZcEvfLSiliJDUYkir2eSIAkGLmgw9SKLQFqtShGZNfqHfZ/bofGbaFQg5Y2xH+9Bi1B4MBLlfC/jfncliX+Z6jhqehjZyLdnFLNJUaCX4H4gmm88xH4R5T1n9hfxGT5vIO4WaOynsbbL2a5p2JBx7QpXl+vWztV5fjx82csOwty206OMtlJhRYAhawPH0kikQ9iYjBHnG8BRmyxVHS0A6aog3R1iYjLGE+p6c0EV9X8iFnW1aKLbaWU88256GVljBQmdlcm5UR3favzuLoLr3h0J3u9DxSZ/CitE40aUTaKb6DJRLD7oja+yFaNuwqgj9So6rsMmtLa+DCgoa3dw4CZOxcaYF20cJxpdmOPPpa74nr1557ylVCmztVj8xtS1kIY0Cg0d1Vz08Y/7u2Z6i9llTx1XzddZobby2YiTjTp1In/Zi2EEgn3RWc00TKnHXAg/wV60BkSHMrzU0AEJEwupkmV9zxT+VJH2rM0usc2xfChDBGl2qsh+Dbumii1uz1uxoulNs7PUZCqkuW6/pdgmfqzTqEMNpALIZ3F5PbxCX6fGV8FoBvsoE7QVZY3N0MO2jFUQ+yKk5ts9n8HeZGu//OfOtvh/Bl/2zI39wBXp9r3AixGTu7aRvvFoGwdq1RI9yv3sbLifSnZXM=----ATTACHMENT:----NDk4Nzg3MDYxODg0NjI3NyA1NDM1NDUwNzczMTUxOTE0IDY1MTI2NjI0NTI0NzEzMQ==