예제 #1
0
 public function testWriteCode()
 {
     $this->console->writeCode('test');
     $this->assertEquals("test", $this->console->getOutput());
 }
예제 #2
0
 /**
  * Clears entire screen and moves cursor to upper left corner
  */
 public function clear()
 {
     $this->console->writeCode(Code::SCREEN_CLEAR);
     $this->console->cursor()->moveTo(0, 0);
 }
예제 #3
0
 /**
  * Restores previously saved cursor position and attributes
  */
 public function restore()
 {
     $this->console->writeCode(Code::CURSOR_RESTORE);
 }