/** * @param string $class * @return WSDL */ public static function fromAnnotations($class) { $annotationWSDLBuilder = new AnnotationWSDLBuilder($class); $WSDLBuilder = $annotationWSDLBuilder->build()->getBuilder(); return self::fromBuilder($WSDLBuilder); }
/** * @test */ public function shouldCreateBuilderWithWebMethodsOnly() { //given $annotationWSDLBuilder = new AnnotationWSDLBuilder('\\Fixtures\\ServiceWebMethods'); //when $annotationWSDLBuilder->build(); //then $WSDLBuilder = $annotationWSDLBuilder->getBuilder(); Assert::thatArray($WSDLBuilder->getMethods())->extracting('name')->containsOnly('uppercaseUserName', 'methodWithoutParameters', 'methodWithoutResult'); }