<?php declare(strict_types=1);

namespace Newland\ToubizWidgetRendering\Tests\Unit\Renderer\Mock;

use Symfony\Component\Console\Output\NullOutput;

class OutputMock extends NullOutput
{
    public $written = [];

    public function write($messages, $newline = false, $options = self::OUTPUT_NORMAL)
    {
        foreach ((array) $messages as $message) {
            $this->written[] = $message;
        }
    }
}
