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)
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
6) 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
7) 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
8) 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
9) 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
10) 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
11) 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
12) 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
13) 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
14) 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
15) 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
16) 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
17) 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
18) 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
19) 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
20) 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
21) 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
22) 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
23) 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
24) 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
25) 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
26) 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
27) 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
31) 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.