public function testGetFunctions() { $server = new Server(); $server->addFunction('\\ZendTest\\Soap\\TestAsset\\TestFunc'); $functions = array('\\ZendTest\\Soap\\TestAsset\\TestFunc2', '\\ZendTest\\Soap\\TestAsset\\TestFunc3', '\\ZendTest\\Soap\\TestAsset\\TestFunc4'); $server->addFunction($functions); $functions = array('\\ZendTest\\Soap\\TestAsset\\TestFunc3', '\\ZendTest\\Soap\\TestAsset\\TestFunc5', '\\ZendTest\\Soap\\TestAsset\\TestFunc6'); $server->addFunction($functions); $allAddedFunctions = array('\\ZendTest\\Soap\\TestAsset\\TestFunc', '\\ZendTest\\Soap\\TestAsset\\TestFunc2', '\\ZendTest\\Soap\\TestAsset\\TestFunc3', '\\ZendTest\\Soap\\TestAsset\\TestFunc4', '\\ZendTest\\Soap\\TestAsset\\TestFunc5', '\\ZendTest\\Soap\\TestAsset\\TestFunc6'); $this->assertTrue($server->getFunctions() == $allAddedFunctions); }