public function testCompositeRequiresContextForAddingComplexTypesOtherwiseThrowsException()
 {
     $strategy = new ComplexTypeStrategy\Composite();
     $this->setExpectedException('Zend\\Soap\\Exception\\InvalidArgumentException', 'Cannot add complex type \'Test\'');
     $strategy->addComplexType('Test');
 }
예제 #2
0
 public function testGetDefaultStrategy()
 {
     $strategyClass = 'Zend\\Soap\\Wsdl\\ComplexTypeStrategy\\AnyType';
     $strategy = new Composite(array(), $strategyClass);
     $this->assertEquals($strategyClass, get_class($strategy->getDefaultStrategy()));
 }