コード例 #1
0
 public function testUnusedFunctionsOfAutoDiscoverThrowExceptionOnLoadFunctionsCall()
 {
     $server = new AutoDiscover();
     
     $this->setExpectedException('Zend\Soap\Exception\RuntimeException', 'Function has no use in AutoDiscover');
     $server->loadFunctions("bogus");
 }
コード例 #2
0
ファイル: AutoDiscoverTest.php プロジェクト: heiglandreas/zf2
 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) {
     }
 }