Issues

ZF-2874: Zend_Service_Flickr_OfflineTest errors

Issue Type: Unit Tests: Problem Created: 2008-03-13T08:45:07.000+0000 Last Updated: 2008-09-02T10:39:04.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Darby Felton (darby) Assignee: Joakim Nygård (jokke) Tags: - Zend_Service_Flickr

Related issues: Attachments:

Description

Results from PHP 5.2.5 on linux:

<pre class="literal">
$ 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

Posted by Darby Felton (darby) on 2008-03-13T08:49:02.000+0000

Assigning to [~jokke] for review

Posted by Thomas Weidner (thomas) on 2008-03-15T16:30:14.000+0000

Here is the failure from within WindowsXP

<pre class="highlight">
   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

Posted by Joakim Nygård (jokke) on 2008-03-17T13:31:16.000+0000

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

Posted by Wil Sinclair (wil) on 2008-03-21T16:59:10.000+0000

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

Posted by Darby Felton (darby) on 2008-04-02T08:33:42.000+0000

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.

Posted by Joakim Nygård (jokke) on 2008-05-09T07:40:19.000+0000

Merged to release-1.5 branch in r9433

Posted by Wil Sinclair (wil) on 2008-09-02T10:39:04.000+0000

Updating for the 1.6.0 release.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts