/** * @expectedException puzzle_stream_exception_SeekException */ public function testCalculatesHashThrowsWhenSeekFails() { $s = new puzzle_stream_NoSeekStream(puzzle_stream_Stream::factory('foobazbar')); $s->read(2); puzzle_stream_Utils::hash($s, 'md5'); }