4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Console\Tests\Fixtures;
14 use Symfony\Component\Console\Output\BufferedOutput;
19 * @author Kévin Dunglas <dunglas@gmail.com>
21 class DummyOutput extends BufferedOutput
26 public function getLogs()
29 foreach (explode(PHP_EOL, trim($this->fetch())) as $message) {
30 preg_match('/^\[(.*)\] (.*)/', $message, $matches);
31 $logs[] = sprintf('%s %s', $matches[1], $matches[2]);