GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 28-28 lines in 2 locations

tests/src/WSDL/XML/Styles/DocumentLiteralWrappedTest.php 2 locations

@@ 117-144 (lines=28) @@
114
    /**
115
     * @test
116
     */
117
    public function shouldParseObjectWithWrapper()
118
    {
119
        //given
120
        $parameter = ParameterFactory::createParameterForObjectWithWrapper('method');
121
122
        //when
123
        $types = $this->_documentLiteralWrapped->typeParameters($parameter);
124
125
        //then
126
        $type = $types[0];
127
        $this->assertEquals('method', $type->getName());
128
        $this->assertEquals(array(
129
            array('type' => 'element', 'value' => 'ns:AgentNameWithId', 'name' => 'agentNameWithId')
130
        ), $type->getElementAttributes());
131
        $complexActual = $type->getComplex();
132
        Assert::thatArray($complexActual)->onMethod('getName')->containsExactly('AgentNameWithId');
133
        Assert::thatArray($complexActual)->onMethod('getElementAttributes')
134
            ->containsKeyAndValue(array(array(
135
                array('type' => 'element', 'value' => 'ns:MocksMockUserWrapper', 'name' => 'agent'),
136
                array('type' => 'type', 'value' => 'xsd:int', 'name' => 'id')
137
            )));
138
        Assert::thatArray($complexActual[0]->getComplex())->onMethod('getElementAttributes')
139
            ->containsKeyAndValue(array(array(
140
                array('type' => 'type', 'value' => 'xsd:int', 'name' => 'id'),
141
                array('type' => 'type', 'value' => 'xsd:string', 'name' => 'name'),
142
                array('type' => 'type', 'value' => 'xsd:int', 'name' => 'age')
143
            )));
144
    }
145
146
    /**
147
     * @test
@@ 275-302 (lines=28) @@
272
    /**
273
     * @test
274
     */
275
    public function shouldParseReturnObjectWithWrapper()
276
    {
277
        //given
278
        $parameter = ParameterFactory::createReturnForObjectWithWrapper('method');
279
280
        //when
281
        $element = $this->_documentLiteralWrapped->typeReturning($parameter);
282
283
        //then
284
        $this->assertEquals('methodResponse', $element->getName());
285
        $this->assertEquals(array(
286
            array('type' => 'element', 'value' => 'ns:AgentNameWithId', 'name' => 'agentNameWithId')
287
        ), $element->getElementAttributes());
288
        $actualComplex = $element->getComplex();
289
        Assert::thatArray($actualComplex)->onMethod('getName')->containsExactly('AgentNameWithId');
290
        Assert::thatArray($actualComplex)->onMethod('getElementAttributes')
291
            ->containsKeyAndValue(array(array(
292
                array('type' => 'element', 'value' => 'ns:MocksMockUserWrapper', 'name' => 'agent'),
293
                array('type' => 'type', 'value' => 'xsd:int', 'name' => 'id')
294
            )));
295
        $actualComplex2 = $actualComplex[0]->getComplex();
296
        Assert::thatArray($actualComplex2)->onMethod('getElementAttributes')
297
            ->containsKeyAndValue(array(array(
298
                array('type' => 'type', 'value' => 'xsd:int', 'name' => 'id'),
299
                array('type' => 'type', 'value' => 'xsd:string', 'name' => 'name'),
300
                array('type' => 'type', 'value' => 'xsd:int', 'name' => 'age')
301
            )));
302
    }
303
304
    /**
305
     * @test