Esempio n. 1
0
 /**
  * @expectedException Jm_Console_Exception
  */
 public function testWriteFailed()
 {
     // open a readonly file descriptor
     $fd = fopen(__FILE__, 'r');
     $output = new Jm_Console_Output($fd);
     // the following line should throw an exception
     $output->write('hello');
 }
Esempio n. 2
0
 /**
  * Enables ANSI control chars for stdout and stderr
  *
  * @return Jm_Console
  */
 public function ansiEnable()
 {
     $this->stdout->ansiEnable();
     $this->stderr->ansiEnable();
     return $this;
 }