text() public static method

Return string colorized for Linux console
public static text ( string $text, string $foreground = null, string $background = null, boolean $bold = false, boolean $underline = false ) : string
$text string
$foreground string
$background string
$bold boolean
$underline boolean
return string
Example #1
0
 /**
  * @param \PHPUnit_Framework_TestSuite $suite
  * @return void
  */
 public function endTestSuite(\PHPUnit_Framework_TestSuite $suite)
 {
     $time = sprintf('%0.3f sec', microtime(1) - $this->timeSuite);
     echo "\n";
     echo Colorize::text("Suite Time: " . $time, 'white', null, true);
     echo "\n";
 }