Code Duplication    Length = 9-9 lines in 2 locations

tests/ResponseTest.php 2 locations

@@ 162-170 (lines=9) @@
159
        $this->assertSame(['Bam'], $r2->getHeader('baz'));
160
    }
161
162
    public function testWithHeaderAsArray()
163
    {
164
        $r = new Response(200, ['Foo' => 'Bar']);
165
        $r2 = $r->withHeader('baZ', ['Bam', 'Bar']);
166
        $this->assertSame(['Foo' => ['Bar']], $r->getHeaders());
167
        $this->assertSame(['Foo' => ['Bar'], 'baZ' => ['Bam', 'Bar']], $r2->getHeaders());
168
        $this->assertSame('Bam, Bar', $r2->getHeaderLine('baz'));
169
        $this->assertSame(['Bam', 'Bar'], $r2->getHeader('baz'));
170
    }
171
172
    public function testWithHeaderReplacesDifferentCase()
173
    {
@@ 192-200 (lines=9) @@
189
        $this->assertSame(['Bar', 'Baz'], $r2->getHeader('foo'));
190
    }
191
192
    public function testWithAddedHeaderAsArray()
193
    {
194
        $r = new Response(200, ['Foo' => 'Bar']);
195
        $r2 = $r->withAddedHeader('foO', ['Baz', 'Bam']);
196
        $this->assertSame(['Foo' => ['Bar']], $r->getHeaders());
197
        $this->assertSame(['Foo' => ['Bar', 'Baz', 'Bam']], $r2->getHeaders());
198
        $this->assertSame('Bar, Baz, Bam', $r2->getHeaderLine('foo'));
199
        $this->assertSame(['Bar', 'Baz', 'Bam'], $r2->getHeader('foo'));
200
    }
201
202
    public function testWithAddedHeaderThatDoesNotExist()
203
    {