Пример #1
0
 /**
  * Setup before each test
  *
  * @return void
  */
 public function setUp()
 {
     // We need to fake an xterm Terminfo
     $terminfo = new Qi_Console_Terminfo(false, 'xterm');
     $options = array('terminfo' => $terminfo);
     $terminal = new Qi_Console_Terminal($options);
     $terminal->setIsatty(true);
     $args = new Qi_Console_ArgV(array('a' => '1'));
     $this->_object = new TestingClient($args, $terminal);
 }
Пример #2
0
 /**
  * Display an error
  *
  * @param string $message Error message
  * @return void
  */
 protected function _displayError($message)
 {
     echo "\n";
     $this->_terminal->pretty_message($message, 7, 1);
     echo "\n";
 }