public function testSeekException() { $handle = fopen('php://temp', 'w+'); $stream = new Stream($handle); $stream->seek(-1); }