Sha256: 68f4f041e627d3c5a3daff5ea6c3ae3bb748627adcbcb47cee9ab35b370fbb61

Contents?: true

Size: 797 Bytes

Versions: 18

Compression:

Stored size: 797 Bytes

Contents

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Console\Tests\Fixtures;

use Symfony\Component\Console\Output\BufferedOutput;

/**
 * Dummy output.
 *
 * @author Kévin Dunglas <dunglas@gmail.com>
 */
class DummyOutput extends BufferedOutput
{
    /**
     * @return array
     */
    public function getLogs()
    {
        $logs = [];
        foreach (explode(PHP_EOL, trim($this->fetch())) as $message) {
            preg_match('/^\[(.*)\] (.*)/', $message, $matches);
            $logs[] = sprintf('%s %s', $matches[1], $matches[2]);
        }

        return $logs;
    }
}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
dependabot-composer-0.119.0.beta1 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.113.19 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.112.1 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.111.57 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.111.56 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.111.52 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.111.50 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.111.25 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.111.17 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.111.15 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.110.13 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.108.11 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.108.8 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.107.47 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.107.39 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.107.36 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.107.28 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
dependabot-composer-0.107.14 helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php