public function testCompositeRequiresContextForAddingComplexTypesOtherwiseThrowsException() { $strategy = new Zend_Soap_Wsdl_Strategy_Composite(); try { $strategy->addComplexType("Test"); $this->fail(); } catch (Exception $e) { $this->assertTrue($e instanceof Zend_Soap_Wsdl_Exception); } }