This class wraps an input stream and adds convenience functionality for reading that stream.
Since: 1.0
Author: Bernhard Schussek (bschussek@gmail.com)
Exemplo n.º 1
0
 public function testIsClosed()
 {
     $stream = $this->getMock('Webmozart\\Console\\Api\\IO\\InputStream');
     $this->input = new Input($stream);
     $stream->expects($this->once())->method('isClosed')->willReturn('RESULT');
     $this->assertSame('RESULT', $this->input->isClosed());
 }
Exemplo n.º 2
0
 /**
  * Returns whether the user may be asked for input.
  *
  * @return bool Returns `true` if the user may be asked for input and
  *              `false` otherwise.
  */
 public function isInteractive()
 {
     return $this->input->isInteractive();
 }