/** * @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'); }