/** * Clears entire line and moves cursor to the beginning of the line */ public function clearLine() { $this->console->write(Code::CR); $this->console->writeCode(Code::SCREEN_CLEAR_LINE); }
public function testWrite_output_log_append() { $this->console->write('test'); $this->console->write('test'); $this->assertEquals('testtest', $this->console->getOutput()); }