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