/** * @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'); }
/** * Enables ANSI control chars for stdout and stderr * * @return Jm_Console */ public function ansiEnable() { $this->stdout->ansiEnable(); $this->stderr->ansiEnable(); return $this; }