Code Duplication    Length = 12-12 lines in 2 locations

tests/BatchRequestTest.php 2 locations

@@ 132-143 (lines=12) @@
129
        $this->assertRequestsMatch($requests, $formattedRequests);
130
    }
131
132
    public function testANumericArrayOfRequestsCanBeAdded()
133
    {
134
        $requests = [
135
            new Request(null, null, 'GET', '/foo'),
136
            new Request(null, null, 'POST', '/bar', ['foo' => 'bar']),
137
            new Request(null, null, 'DELETE', '/baz'),
138
        ];
139
140
        $formattedRequests = $this->createBatchRequestWithRequests($requests)->getRequests();
141
142
        $this->assertRequestsMatch($requests, $formattedRequests);
143
    }
144
145
    public function testAnAssociativeArrayOfRequestsCanBeAdded()
146
    {
@@ 145-156 (lines=12) @@
142
        $this->assertRequestsMatch($requests, $formattedRequests);
143
    }
144
145
    public function testAnAssociativeArrayOfRequestsCanBeAdded()
146
    {
147
        $requests = [
148
            'req-one' => new Request(null, null, 'GET', '/foo'),
149
            'req-two' => new Request(null, null, 'POST', '/bar', ['foo' => 'bar']),
150
            'req-three' => new Request(null, null, 'DELETE', '/baz'),
151
        ];
152
153
        $formattedRequests = $this->createBatchRequestWithRequests($requests)->getRequests();
154
155
        $this->assertRequestsMatch($requests, $formattedRequests);
156
    }
157
158
    public function testRequestsCanBeInjectedIntoConstructor()
159
    {