예제 #1
0
 public function testCompositeRequiresContextForAddingComplexTypesOtherwiseThrowsException()
 {
     $strategy = new Strategy\Composite();
     $this->setExpectedException('Zend\\Soap\\Exception\\InvalidArgumentException', 'Cannot add complex type \'Test\'');
     $strategy->addComplexType('Test');
 }
예제 #2
0
 public function testCompositeRequiresContextForAddingComplexTypesOtherwiseThrowsException()
 {
     $strategy = new Strategy\Composite();
     try {
         $strategy->addComplexType('Test');
         $this->fail();
     } catch (\Exception $e) {
         $this->assertTrue($e instanceof WSDL\Exception);
     }
 }