Zend Framework

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

Details

  • Type: Unit Tests: Problem Unit Tests: Problem
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.9.2
  • Component/s: Zend_XmlRpc_Server
  • Labels:
    None

Description

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

Issue Links

Activity

Hide
Alexander Veremyev added a comment -

Error occurs in testMulticallHandlesFaults(Zend_XmlRpc_ServerTest) test.

Show
Alexander Veremyev added a comment - Error occurs in testMulticallHandlesFaults(Zend_XmlRpc_ServerTest) test.
Hide
Alexander Veremyev added a comment -

Error occurs only within whole ZF unit tests suite passing.

Show
Alexander Veremyev added a comment - Error occurs only within whole ZF unit tests suite passing.
Hide
Alexander Veremyev added a comment -

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.

Show
Alexander Veremyev added a comment - 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.
Hide
Matthew Weier O'Phinney added a comment -

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.

Show
Matthew Weier O'Phinney added a comment - 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.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: