public function testUnusedFunctionsOfAutoDiscoverThrowExceptionOnBadPersistence() { $server = new AutoDiscover(); $this->setExpectedException('Zend\Soap\Exception\RuntimeException', 'Function has no use in AutoDiscover'); $server->setPersistence("bogus"); }
public function testUnusedFunctionsOfAutoDiscoverThrowException() { $server = new AutoDiscover(); try { $server->setPersistence("bogus"); $this->fail(); } catch (AutoDiscoverException $e) { } try { $server->fault(); $this->fail(); } catch (AutoDiscoverException $e) { } try { $server->loadFunctions("bogus"); $this->fail(); } catch (AutoDiscoverException $e) { } }