ZF-7676: Unit tests stop because of the "Call to undefined method Zend_XmlRpc_Server_Fault::getReturnValue()" fatal error

Issue Type: Unit Tests: Problem Created: 2009-08-24T11:15:59.000+0000 Last Updated: 2009-08-25T06:02:55.000+0000 Status: Resolved Fix version(s): - 1.9.2 (25/Aug/09)

Reporter: Alexander Veremyev (alexander) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_XmlRpc_Server

Related issues: - ZF-7683



{panel} Fatal error: Call to undefined method Zend_XmlRpc_Server_Fault::getReturnValue() in /home/cawa/ZendFramework/svn/framework/branches/release-1.9/library/Zend/XmlRpc/Server/System.php on line 143 {panel}


Posted by Alexander Veremyev (alexander) on 2009-08-24T12:08:09.000+0000

Error occurs in testMulticallHandlesFaults(Zend_XmlRpc_ServerTest) test.

Posted by Alexander Veremyev (alexander) on 2009-08-24T12:10:07.000+0000

Error occurs only within whole ZF unit tests suite passing.

Posted by Alexander Veremyev (alexander) on 2009-08-24T12:59:03.000+0000

Zend_XmlRpc_Server_System::multicall() expects only Zend_XmlRpc_Response object as a return value of Zend_XmlRpc_Server::handle() call. But Zend_XmlRpc_Fault object also may be returned.

So $response->isFault() method actually involves Zend_XmlRpc_Faul::isFault() static method.

Posted by Matthew Weier O'Phinney (matthew) on 2009-08-24T14:27:14.000+0000

I've added a test for "instanceof Zend_XmlRpc_Fault" prior to the isFault() check to cover all bases now. Fix is in trunk and 1.9 release branch.

Have you found an issue?

See the Overview section for more details.


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

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