isClosed() public method

Returns whether the input is closed.
public isClosed ( ) : boolean
return boolean Returns `true` if the input is closed and `false` otherwise.
Esempio 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());
 }