Code Duplication    Length = 14-14 lines in 2 locations

tests/WSDL/Builder/AnnotationWSDLBuilderTest.php 2 locations

@@ 116-129 (lines=14) @@
113
    /**
114
     * @test
115
     */
116
    public function shouldCreateBuilderWithMethods()
117
    {
118
        //given
119
        $annotationWSDLBuilder = new AnnotationWSDLBuilder(ServiceAllAnnotations::class);
120
121
        //when
122
        $annotationWSDLBuilder->build();
123
124
        //then
125
        $WSDLBuilder = $annotationWSDLBuilder->getBuilder();
126
        Assert::thatArray($WSDLBuilder->getMethods())
127
            ->extracting('name')
128
            ->containsOnly('uppercaseUserName', 'appendPrefixToNumbers', 'getUserContext');
129
    }
130
131
    /**
132
     * @test
@@ 151-164 (lines=14) @@
148
    /**
149
     * @test
150
     */
151
    public function shouldCreateBuilderWithWebMethodsOnly()
152
    {
153
        //given
154
        $annotationWSDLBuilder = new AnnotationWSDLBuilder(ServiceWebMethods::class);
155
156
        //when
157
        $annotationWSDLBuilder->build();
158
159
        //then
160
        $WSDLBuilder = $annotationWSDLBuilder->getBuilder();
161
        Assert::thatArray($WSDLBuilder->getMethods())
162
            ->extracting('name')
163
            ->containsOnly('uppercaseUserName', 'methodWithoutParameters', 'emptyResult');
164
    }
165
166
    /**
167
     * @test