You are here

public function DummyOutput::getLogs 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::getLogs()

Return value

array

File

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

Class

DummyOutput
Dummy output.

Namespace

Symfony\Component\Console\Tests\Fixtures

Code

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