Code Duplication    Length = 7-8 lines in 2 locations

tests/RequestTest.php 1 location

@@ 168-175 (lines=8) @@
165
        $this->assertEquals('zoobar, foobar, zoobar', $r->getHeaderLine('zoo'));
166
    }
167
168
    public function testSupportNumericHeaders()
169
    {
170
        $r = new Request('GET', '', [
171
            'Content-Length' => 200,
172
        ]);
173
        $this->assertSame(['Content-Length' => ['200']], $r->getHeaders());
174
        $this->assertSame('200', $r->getHeaderLine('Content-Length'));
175
    }
176
177
    public function testAddsPortToHeader()
178
    {

tests/ResponseTest.php 1 location

@@ 53-59 (lines=7) @@
50
        $this->assertSame('Created', $r2->getReasonPhrase());
51
    }
52
53
    public function testCanConstructWithHeaders()
54
    {
55
        $r = new Response(200, ['Foo' => 'Bar']);
56
        $this->assertSame(['Foo' => ['Bar']], $r->getHeaders());
57
        $this->assertSame('Bar', $r->getHeaderLine('Foo'));
58
        $this->assertSame(['Bar'], $r->getHeader('Foo'));
59
    }
60
61
    public function testCanConstructWithHeadersAsArray()
62
    {