public function testTellThrowsExceptionWhenError() { $stream = new Stream(); $resource = $stream->getResource(); fseek($resource, 100); $this->setExpectedException('RuntimeException'); $stream->tell(); }