/**
  * writes data into the stream
  *
  * @param   string  $data
  * @return  int     amount of bytes written
  */
 public function stream_write($data)
 {
     self::recordMethodCall('stream_write', $this->path);
     return parent::stream_write($data);
 }