You are here

class DummyOutput in Zircon Profile 8

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

Dummy output.

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

Hierarchy

Expanded class hierarchy of DummyOutput

1 file declares its use of DummyOutput
ConsoleLoggerTest.php in vendor/symfony/console/Tests/Logger/ConsoleLoggerTest.php

File

vendor/symfony/console/Tests/Fixtures/DummyOutput.php, line 21

Namespace

Symfony\Component\Console\Tests\Fixtures
View source
class DummyOutput extends BufferedOutput {

  /**
   * @return array
   */
  public function getLogs() {
    $logs = array();
    foreach (explode("\n", trim($this
      ->fetch())) as $message) {
      preg_match('/^\\[(.*)\\] (.*)/', $message, $matches);
      $logs[] = sprintf('%s %s', $matches[1], $matches[2]);
    }
    return $logs;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BufferedOutput::$buffer private property
BufferedOutput::doWrite protected function Writes a message to the output. Overrides Output::doWrite
BufferedOutput::fetch public function Empties buffer and returns its content.
DummyOutput::getLogs public function
Output::$formatter private property
Output::$verbosity private property
Output::getFormatter public function Returns current output formatter instance. Overrides OutputInterface::getFormatter
Output::getVerbosity public function Gets the current verbosity of the output. Overrides OutputInterface::getVerbosity
Output::isDebug public function
Output::isDecorated public function Gets the decorated flag. Overrides OutputInterface::isDecorated
Output::isQuiet public function
Output::isVerbose public function
Output::isVeryVerbose public function
Output::setDecorated public function Sets the decorated flag. Overrides OutputInterface::setDecorated 1
Output::setFormatter public function Sets output formatter. Overrides OutputInterface::setFormatter 1
Output::setVerbosity public function Sets the verbosity of the output. Overrides OutputInterface::setVerbosity 1
Output::write public function Writes a message to the output. Overrides OutputInterface::write
Output::writeln public function Writes a message to the output and adds a newline at the end. Overrides OutputInterface::writeln
Output::__construct public function Constructor. 1
OutputInterface::OUTPUT_NORMAL constant
OutputInterface::OUTPUT_PLAIN constant
OutputInterface::OUTPUT_RAW constant
OutputInterface::VERBOSITY_DEBUG constant
OutputInterface::VERBOSITY_NORMAL constant
OutputInterface::VERBOSITY_QUIET constant
OutputInterface::VERBOSITY_VERBOSE constant
OutputInterface::VERBOSITY_VERY_VERBOSE constant