/** * @test */ public function shouldCorrectCreateWsdlWithMultipleWrappersForDocumentLiteralWrapped() { //given XMLGenerator::$alreadyGeneratedComplexTypes = array(); $classParser = new ClassParser('\\Mocks\\MockMultipleWrappers'); $classParser->parse(); $xml = new XMLGenerator('\\Mocks\\MockMultipleWrappers', $this->_namespace, $this->_location); $xml->setWSDLMethods($classParser->getMethods())->setBindingStyle(new DocumentLiteralWrapped())->generate(); //when $wsdl = $xml->getGeneratedXML(); //then $file = Path::join(__DIR__, 'xml_file_asserts', 'multiple_wrappers.wsdl'); $this->assertXmlStringEqualsXmlFile($file, $wsdl); }