| @@ 112-125 (lines=14) @@ | ||
| 109 | /** |
|
| 110 | * @test |
|
| 111 | */ |
|
| 112 | public function shouldCreateBuilderWithMethods() |
|
| 113 | { |
|
| 114 | //given |
|
| 115 | $annotationWSDLBuilder = new AnnotationWSDLBuilder('\Fixtures\ServiceAllAnnotations'); |
|
| 116 | ||
| 117 | //when |
|
| 118 | $annotationWSDLBuilder->build(); |
|
| 119 | ||
| 120 | //then |
|
| 121 | $WSDLBuilder = $annotationWSDLBuilder->getBuilder(); |
|
| 122 | Assert::thatArray($WSDLBuilder->getMethods()) |
|
| 123 | ->extracting('name') |
|
| 124 | ->containsOnly('uppercaseUserName', 'appendPrefixToNumbers', 'getUserContext'); |
|
| 125 | } |
|
| 126 | ||
| 127 | /** |
|
| 128 | * @test |
|
| @@ 147-160 (lines=14) @@ | ||
| 144 | /** |
|
| 145 | * @test |
|
| 146 | */ |
|
| 147 | public function shouldCreateBuilderWithWebMethodsOnly() |
|
| 148 | { |
|
| 149 | //given |
|
| 150 | $annotationWSDLBuilder = new AnnotationWSDLBuilder('\Fixtures\ServiceWebMethods'); |
|
| 151 | ||
| 152 | //when |
|
| 153 | $annotationWSDLBuilder->build(); |
|
| 154 | ||
| 155 | //then |
|
| 156 | $WSDLBuilder = $annotationWSDLBuilder->getBuilder(); |
|
| 157 | Assert::thatArray($WSDLBuilder->getMethods()) |
|
| 158 | ->extracting('name') |
|
| 159 | ->containsOnly('uppercaseUserName', 'methodWithoutParameters', 'methodWithoutResult'); |
|
| 160 | } |
|
| 161 | } |
|
| 162 | ||