Ejemplo n.º 1
0
 /**
  * @test
  */
 public function shouldNotParseMagicMethods()
 {
     //given
     $classParser = new ClassParser('\\Mocks\\MockClass');
     //when
     $classParser->parse();
     //then
     $this->assertCount(6, $classParser->getMethods());
 }
Ejemplo n.º 2
0
 private function _parseClass()
 {
     $this->_classParser = new ClassParser($this->_class);
     $this->_classParser->parse();
 }
Ejemplo n.º 3
0
 /**
  * @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);
 }