You are here

public function NullOutputTest::testVerbosity in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Output/NullOutputTest.php \Symfony\Component\Console\Tests\Output\NullOutputTest::testVerbosity()

File

vendor/symfony/console/Tests/Output/NullOutputTest.php, line 31

Class

NullOutputTest

Namespace

Symfony\Component\Console\Tests\Output

Code

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');
}