Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TestOutput.php
Go to the documentation of this file.
1 <?php
8 
9 use Symfony\Component\Console\Output\Output;
10 
14 class TestOutput extends Output
15 {
16  public $output = '';
17 
18  public function clear()
19  {
20  $this->output = '';
21  }
22 
27  protected function doWrite($message, $newline)
28  {
29  $this->output .= $message . ($newline ? "\n" : '');
30  }
31 }
output($string, $level=INFO, $label='')
$message