Webmozart\Console\Api\IO\Input::isClosed PHP Method

isClosed() public method

Returns whether the input is closed.
public isClosed ( ) : boolean
return boolean Returns `true` if the input is closed and `false` otherwise.
    public function isClosed()
    {
        return $this->stream->isClosed();
    }

Usage Example

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());
 }