public function isClosed()
{
return $this->stream->isClosed();
}
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()); }