/** * @expectedException \RuntimeException */ public function testCalculatesHashThrowsWhenSeekFails() { $s = new NoSeekStream(Psr7\stream_for('foobazbar')); $s->read(2); Psr7\hash($s, 'md5'); }