clearInput() public method

Clears the input buffer.
public clearInput ( )
Beispiel #1
0
 public function testClearInput()
 {
     $io = new BufferedIO();
     $io->setInput('Lorem ipsum');
     $this->assertSame('Lorem', $io->read(5));
     $io->clearInput();
     $this->assertNull($io->readLine());
 }