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