コード例 #1
0
 /**
  * Writes data to a closed piped output stream.
  *
  * @expectedException ZerusTech\Component\IO\Exception\IOException
  * @expectedExceptionMessage Can't write to a closed stream.
  */
 public function testOutputOnClosedStream()
 {
     $output = new PipedOutputStream();
     $output->close();
     $this->output->invoke($output, 'hello');
 }