Issues

ZF-2874: Zend_Service_Flickr_OfflineTest errors

Description

Results from PHP 5.2.5 on linux:

$ phpunit --verbose Zend_Service_Flickr_OfflineTest
PHPUnit 3.2.15 by Sebastian Bergmann.

Zend_Service_Flickr_OfflineTest
............E...E..


Time: 0 seconds

There were 2 errors:

1) testGroupPoolGetPhotosBasic(Zend_Service_Flickr_OfflineTest)
DOMDocument::loadXML(): Extra content at the end of the document in Entity, line: 16
/home/darby/framework/trunk/library/Zend/Service/Flickr.php:240
/home/darby/framework/trunk/tests/Zend/Service/Flickr/OfflineTest.php:374

2) testGroupPoolGetPhotosExceptionGroupIdInvalid(Zend_Service_Flickr_OfflineTest)
DOMDocument::loadXML(): Extra content at the end of the document in Entity, line: 5
/home/darby/framework/trunk/library/Zend/Service/Flickr.php:240
/home/darby/framework/trunk/tests/Zend/Service/Flickr/OfflineTest.php:485

FAILURES!
Tests: 19, Errors: 2.

I can also reproduce these errors with PHP 5.1.4 on WinXP.

This issue affects trunk and does not affect the release-1.5 branch as of SVN r8805.

Comments

Assigning to [~jokke] for review

Here is the failure from within WindowsXP


   Zend Framework - Zend_Service_Flickr
    Zend_Service_Flickr_OfflineTest
    ............
Warning: DOMDocument::loadXML(): Extra content at the end of the document in Ent
ity, line: 16 in C:\Voxtronic\3rdParty\Zend Framework\library\Zend\Service\Flick
r.php on line 240

Call Stack:
    0.0019     178528   1. {main}() C:\Voxtronic\3rdParty\php\PEAR\PHPUnit\TextU
I\Command.php:0
    0.8232    7736064   2. PHPUnit_TextUI_Command::main() C:\Voxtronic\3rdParty\
php\PEAR\PHPUnit\TextUI\Command.php:528
   89.0193  120745864   3. PHPUnit_TextUI_TestRunner->doRun() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\TextUI\Command.php:112
   89.0479  120752528   4. PHPUnit_Framework_TestSuite->run() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\TextUI\TestRunner.php:298
   89.1433  120754800   5. PHPUnit_Framework_TestSuite->run() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\Framework\TestSuite.php:633
 2041.1628  343545656   6. PHPUnit_Framework_TestSuite->run() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\Framework\TestSuite.php:633
 2043.8100  345878048   7. PHPUnit_Framework_TestSuite->run() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\Framework\TestSuite.php:633
 2043.8102  345879904   8. PHPUnit_Framework_TestSuite->run() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\Framework\TestSuite.php:633
 2044.3026  346211176   9. PHPUnit_Framework_TestSuite->runTest() C:\Voxtronic\3
rdParty\php\PEAR\PHPUnit\Framework\TestSuite.php:650
 2044.3026  346211176  10. PHPUnit_Framework_TestCase->run() C:\Voxtronic\3rdPar
ty\php\PEAR\PHPUnit\Framework\TestSuite.php:670
 2044.3026  346211176  11. PHPUnit_Framework_TestResult->run() C:\Voxtronic\3rdP
arty\php\PEAR\PHPUnit\Framework\TestCase.php:351
 2044.3030  346213400  12. PHPUnit_Framework_TestCase->runBare() C:\Voxtronic\3r
dParty\php\PEAR\PHPUnit\Framework\TestResult.php:597
 2044.3070  346248480  13. PHPUnit_Framework_TestCase->runTest() C:\Voxtronic\3r
dParty\php\PEAR\PHPUnit\Framework\TestCase.php:373
 2044.3071  346249912  14. ReflectionMethod->invoke() C:\Voxtronic\3rdParty\php\
PEAR\PHPUnit\Framework\TestCase.php:445
 2044.3071  346249912  15. Zend_Service_Flickr_OfflineTest->testGroupPoolGetPhot
osBasic() C:\Voxtronic\3rdParty\Zend Framework\tests\Zend\Service\Flickr\Offline
Test.php:0
 2044.3802  346266296  16. Zend_Service_Flickr->groupPoolGetPhotos() C:\Voxtroni
c\3rdParty\Zend Framework\tests\Zend\Service\Flickr\OfflineTest.php:374
 2044.5418  346279192  17. DOMDocument->loadXML() C:\Voxtronic\3rdParty\Zend Fra
mework\library\Zend\Service\Flickr.php:240


Fatal error: Call to a member function getAttribute() on a non-object in C:\Voxt
ronic\3rdParty\Zend Framework\library\Zend\Service\Flickr.php on line 577

Call Stack:
    0.0019     178528   1. {main}() C:\Voxtronic\3rdParty\php\PEAR\PHPUnit\TextU
I\Command.php:0
    0.8232    7736064   2. PHPUnit_TextUI_Command::main() C:\Voxtronic\3rdParty\
php\PEAR\PHPUnit\TextUI\Command.php:528
   89.0193  120745864   3. PHPUnit_TextUI_TestRunner->doRun() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\TextUI\Command.php:112
   89.0479  120752528   4. PHPUnit_Framework_TestSuite->run() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\TextUI\TestRunner.php:298
   89.1433  120754800   5. PHPUnit_Framework_TestSuite->run() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\Framework\TestSuite.php:633
 2041.1628  343545656   6. PHPUnit_Framework_TestSuite->run() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\Framework\TestSuite.php:633
 2043.8100  345878048   7. PHPUnit_Framework_TestSuite->run() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\Framework\TestSuite.php:633
 2043.8102  345879904   8. PHPUnit_Framework_TestSuite->run() C:\Voxtronic\3rdPa
rty\php\PEAR\PHPUnit\Framework\TestSuite.php:633
 2044.3026  346211176   9. PHPUnit_Framework_TestSuite->runTest() C:\Voxtronic\3
rdParty\php\PEAR\PHPUnit\Framework\TestSuite.php:650
 2044.3026  346211176  10. PHPUnit_Framework_TestCase->run() C:\Voxtronic\3rdPar
ty\php\PEAR\PHPUnit\Framework\TestSuite.php:670
 2044.3026  346211176  11. PHPUnit_Framework_TestResult->run() C:\Voxtronic\3rdP
arty\php\PEAR\PHPUnit\Framework\TestCase.php:351
 2044.3030  346213400  12. PHPUnit_Framework_TestCase->runBare() C:\Voxtronic\3r
dParty\php\PEAR\PHPUnit\Framework\TestResult.php:597
 2044.3070  346248480  13. PHPUnit_Framework_TestCase->runTest() C:\Voxtronic\3r
dParty\php\PEAR\PHPUnit\Framework\TestCase.php:373
 2044.3071  346249912  14. ReflectionMethod->invoke() C:\Voxtronic\3rdParty\php\
PEAR\PHPUnit\Framework\TestCase.php:445
 2044.3071  346249912  15. Zend_Service_Flickr_OfflineTest->testGroupPoolGetPhot
osBasic() C:\Voxtronic\3rdParty\Zend Framework\tests\Zend\Service\Flickr\Offline
Test.php:0
 2044.3802  346266296  16. Zend_Service_Flickr->groupPoolGetPhotos() C:\Voxtroni
c\3rdParty\Zend Framework\tests\Zend\Service\Flickr\OfflineTest.php:374
 2044.5424  346279280  17. Zend_Service_Flickr::_checkErrors() C:\Voxtronic\3rdP
arty\Zend Framework\library\Zend\Service\Flickr.php:242

under PHP 525 and Windows XP, Trunk SVN 8843

Unit test files was corrupted for some reason. Fixed in r8886

I'm assuming this fix is merged to the 1.5 release branch. Please update if this is not the case.

r8886 was not merged to release-1.5 branch yet. [~jokke], please merge this revision and then update this issue as fixed for next mini release.

Merged to release-1.5 branch in r9433

Updating for the 1.6.0 release.