Issues

ZF-4900: Set of Zend_Service_TwitterTest unit tests errors (Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml)

Issue Type: Unit Tests: Problem Created: 2008-11-11T02:11:00.000+0000 Last Updated: 2008-11-13T14:10:20.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Alexander Veremyev (alexander) Assignee: Wil Sinclair (wil) Tags: - Zend_Service_Twitter

Related issues: Attachments:

Description

{panel} 5) testVerifiedCredentials(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:675 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  1. testPublicTimelineStatusReturnsResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:246 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  2. testUsersFeaturedStatusReturnsResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:486 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  3. testRateLimitStatusReturnsResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:699 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  4. testRateLimitStatusHasHitsLeft(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:699 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  5. testFriendshipCreate(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:628 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  6. testFriendshipExists(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:663 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  7. testFriendsTimelineWithInvalidParamReturnsResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:278 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  8. testFriendsTimelineStatusWithFriendSpecifiedReturnsResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:278 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  9. testFriendsTimelineStatusSinceTwoDaysAgoReturnsResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:278 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  10. testFriendsTimelineWithPageReturnsResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:278 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  11. testUserTimelineStatusWithPageAndTwoTweetsReturnsResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:323 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  12. testUserTimelineStatusShouldReturnTwentyResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:323 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  13. testUserTimelineStatusSinceTwoDaysAgoDateAsStringReturnsResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:323 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  14. testUserTimelineStatusSinceTwoDaysAgoDateAsIntegerReturnsResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:323 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  15. testPostStatusUpdateReturnsResponse(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:371 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  16. testShowStatusReturnsResponse(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:246 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  17. testCreateFavoriteStatusReturnsResponse(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:323 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  18. testFavoriteFavoriesReturnsResponse(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:730 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  19. testDestroyFavoriteReturnsResponse(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:730 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  20. testStatusDestroyReturnsResult(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:323 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  21. testUserFriendsReturnsResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:454 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  22. testUserFolloersReturnsResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:472 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193 {panel}

{panel} 30) testStatusRepliesReturnsResults(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:407 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193

  1. testFriendshipDestory(Zend_Service_TwitterTest) Zend_Rest_Client_Result_Exception: REST Response Error: An error occured while parsing the REST response with simplexml. /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:66 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Rest/Client/Result.php:46 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:643 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Service/Twitter.php:193 {panel}

Comments

Posted by Jon Whitcraft (sidhighwind) on 2008-11-11T04:33:42.000+0000

I do not get the smiple xml errors when I run this unit test. I do how ever get a few error where twitter is comming back with invalid information. I will work tonight on fixing these errors.

Posted by Alexander Veremyev (alexander) on 2008-11-11T05:18:10.000+0000

Here is a dump of Zend_Http_Response object, returned by restGet() operation:

{panel} object(Zend_Http_Response)#1311 (5) { ["version:protected"]=> string(3) "1.1" ["code:protected"]=> int(400) ["message:protected"]=> string(11) "Bad Request" ["headers:protected"]=> array(0) { } ["body:protected"]=> string(0) "" } {panel}

Posted by Alexander Veremyev (alexander) on 2008-11-11T08:51:29.000+0000

Fixed

Posted by Alexander Veremyev (alexander) on 2008-11-11T09:11:52.000+0000

PS resolved with the CS-12553

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:20.000+0000

Changing issues in preparation for the 1.7.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