/**
  * @param string $text
  * @param array $arguments
  * @param string $color
  * @return void
  */
 public function outputLine($text = '', array $arguments = array(), $color = NULL)
 {
     if ($color !== NULL) {
         $text = sprintf("[%sm%s", $color, $text);
     }
     parent::outputLine($text, $arguments);
 }
 public function __construct()
 {
     parent::__construct();
     $log = new LoggerFactory();
     $this->logger = $log->create('GermaniaSacra', 'TYPO3\\Flow\\Log\\Logger', '\\TYPO3\\Flow\\Log\\Backend\\ConsoleBackend');
 }
 /**
  * @test
  */
 public function outputReplacesArgumentsInGivenString()
 {
     $this->mockConsoleOutput->expects($this->once())->method('output')->with('%2$s %1$s', array('text', 'some'));
     $this->commandController->_call('output', '%2$s %1$s', array('text', 'some'));
 }
 public function __construct(ContextFactoryInterface $contextFactory)
 {
     parent::__construct();
     $this->context = $contextFactory->create(array('workspaceName' => 'live'));
 }
 /**
  * @test
  */
 public function outputLineAppendsGivenStringAndNewlineToTheResponseContent()
 {
     $this->mockConsoleOutput->expects($this->once())->method('write')->with('some text' . PHP_EOL);
     $this->commandController->_call('outputLine', 'some text');
 }