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