Exemplo n.º 1
0
 public function testGetFunctions()
 {
     $server = new Server\Server();
     $server->addFunction('Zend_Soap_Server_TestFunc1');
     $functions = array('Zend_Soap_Server_TestFunc2', 'Zend_Soap_Server_TestFunc3', 'Zend_Soap_Server_TestFunc4');
     $server->addFunction($functions);
     $functions = array('Zend_Soap_Server_TestFunc3', 'Zend_Soap_Server_TestFunc5', 'Zend_Soap_Server_TestFunc6');
     $server->addFunction($functions);
     $allAddedFunctions = array('Zend_Soap_Server_TestFunc1', 'Zend_Soap_Server_TestFunc2', 'Zend_Soap_Server_TestFunc3', 'Zend_Soap_Server_TestFunc4', 'Zend_Soap_Server_TestFunc5', 'Zend_Soap_Server_TestFunc6');
     $this->assertTrue($server->getFunctions() == $allAddedFunctions);
 }