Code Duplication    Length = 12-12 lines in 2 locations

tests/BatchRequestTest.php 2 locations

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