Exemplo n.º 1
0
 /**
  * Method to output messages in the running console.
  *
  * @param string $message                  Message to display.
  * @param string $foreground               (Optional) Text color.
  * @param string $background               (Optional) Background color.
  * @param bool   $camelCaseToHumanReadable Converts camel case message to human readable messages.
  *
  * @return $this Same instance for chained method calls.
  */
 public function output($message, $foreground = null, $background = null, $camelCaseToHumanReadable = false)
 {
     if ($this->testSuite->getSuiteSettings()->isLogDisplayed()) {
         if ($camelCaseToHumanReadable) {
             $message = $this->camelToSentence($message);
         }
         echo $this->dye($message, $foreground, $background) . "\n";
     }
     if ($this->testSuite->getSuiteSettings()->isLogStored()) {
         $this->testSuite->getFileLogger()->log($message, 'log');
     }
     return $this;
 }