public function ConsoleOutputTest::testConstructor in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Tests/Output/ConsoleOutputTest.php \Symfony\Component\Console\Tests\Output\ConsoleOutputTest::testConstructor()
File
- vendor/
symfony/ console/ Tests/ Output/ ConsoleOutputTest.php, line 19
Class
Namespace
Symfony\Component\Console\Tests\OutputCode
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');
}