setInput() публичный Метод

Sets the contents of the input buffer.
public setInput ( string $data )
$data string The input data.
Пример #1
0
 public function testClearInput()
 {
     $io = new BufferedIO();
     $io->setInput('Lorem ipsum');
     $this->assertSame('Lorem', $io->read(5));
     $io->clearInput();
     $this->assertNull($io->readLine());
 }