Esempio n. 1
0
 /**
  * Writes a terminal escape code
  *
  * @param string $code_template String template in <b>sprintf</b> format
  * @param array $replacements Arguments for <b>sprintf</b>
  */
 public function writeCode($code_template, $replacements = [])
 {
     $this->write(Console\Code::make($code_template, $replacements));
 }
Esempio n. 2
0
 public function testMakeBgColor()
 {
     $this->assertEquals("", Code::bgColor(Code::COLOR_BLACK));
 }