close() public method

Closes the input.
public close ( )
Beispiel #1
0
 public function testClose()
 {
     $stream = $this->getMock('Webmozart\\Console\\Api\\IO\\InputStream');
     $this->input = new Input($stream);
     $stream->expects($this->once())->method('close');
     $this->input->close();
 }
Beispiel #2
0
 /**
  * Closes the input and the outputs.
  */
 public function close()
 {
     $this->input->close();
     $this->output->close();
     $this->errorOutput->close();
 }