예제 #1
0
 public function testMove_up_left()
 {
     $this->cursor->move(-2, -2);
     $this->assertEquals("", $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);
 }
예제 #4
0
 public function testWriteCode()
 {
     $this->console->writeCode('test');
     $this->assertEquals("test", $this->console->getOutput());
 }
예제 #5
0
 public function testScrollDown_5()
 {
     $this->screen->scrollDown(5);
     $this->assertEquals("MMMMM", $this->console->getOutput());
 }