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