You are here

public function OutputTest::testConstructor in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Tests/Output/OutputTest.php \Symfony\Component\Console\Tests\Output\OutputTest::testConstructor()

File

vendor/symfony/console/Tests/Output/OutputTest.php, line 19

Class

OutputTest

Namespace

Symfony\Component\Console\Tests\Output

Code

public function testConstructor() {
  $output = new TestOutput(Output::VERBOSITY_QUIET, true);
  $this
    ->assertEquals(Output::VERBOSITY_QUIET, $output
    ->getVerbosity(), '__construct() takes the verbosity as its first argument');
  $this
    ->assertTrue($output
    ->isDecorated(), '__construct() takes the decorated flag as its second argument');
}