You are here

class ConsoleLoggerTest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Logger/ConsoleLoggerTest.php \Symfony\Component\Console\Tests\Logger\ConsoleLoggerTest

Console logger test.

@author Kévin Dunglas <dunglas@gmail.com>

Hierarchy

Expanded class hierarchy of ConsoleLoggerTest

File

vendor/symfony/console/Tests/Logger/ConsoleLoggerTest.php, line 25

Namespace

Symfony\Component\Console\Tests\Logger
View source
class ConsoleLoggerTest extends LoggerInterfaceTest {

  /**
   * @var DummyOutput
   */
  protected $output;

  /**
   * {@inheritdoc}
   */
  public function getLogger() {
    $this->output = new DummyOutput(OutputInterface::VERBOSITY_VERBOSE);
    return new ConsoleLogger($this->output, array(
      LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL,
      LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL,
      LogLevel::CRITICAL => OutputInterface::VERBOSITY_NORMAL,
      LogLevel::ERROR => OutputInterface::VERBOSITY_NORMAL,
      LogLevel::WARNING => OutputInterface::VERBOSITY_NORMAL,
      LogLevel::NOTICE => OutputInterface::VERBOSITY_NORMAL,
      LogLevel::INFO => OutputInterface::VERBOSITY_NORMAL,
      LogLevel::DEBUG => OutputInterface::VERBOSITY_NORMAL,
    ));
  }

  /**
   * {@inheritdoc}
   */
  public function getLogs() {
    return $this->output
      ->getLogs();
  }

}

Members