ZF-5783: Undefined offset in Zend_Gdata_GdataOnlineTest::testFeedImplementation
Description
When running Zend_Gdata_GdataOnlineTest, the following unit test failure occurs:
testFeedImplementation(Zend_Gdata_GdataOnlineTest) Undefined offset: 3 .../library/Zend/Gdata/App/Feed.php:153 .../library/Zend/Gdata/App/Feed.php:153
This is caused because testFeedImplementation() isn't calling rewind() before calling current(), and the changes made for protocol v2 support added a foreach() statement (which calls rewind() at the start of execution, not after).
The fix is to call rewind() inside of testFeedImplementation().
Comments
Posted by Trevor Johns (tjohns) on 2009-02-26T16:05:00.000+0000
Assigning to [~jhartmann], since he already has code to fix this. :)
Posted by Jochen Hartmann (jhartmann) on 2009-02-26T16:09:11.000+0000
Fixed in r14177 and merged to 1-7 in r14178.