Code Duplication    Length = 7-7 lines in 2 locations

tests/RequestTest.php 2 locations

@@ 142-148 (lines=7) @@
139
        $this->assertEquals('', $r->getHeaderLine('Bar'));
140
    }
141
142
    public function testHostIsNotOverwrittenWhenPreservingHost()
143
    {
144
        $r = new Request('GET', 'http://foo.com/baz?bar=bam', ['Host' => 'a.com']);
145
        $this->assertEquals(['Host' => ['a.com']], $r->getHeaders());
146
        $r2 = $r->withUri(new Uri('http://www.foo.com/bar'), true);
147
        $this->assertEquals('a.com', $r2->getHeaderLine('Host'));
148
    }
149
150
    public function testOverridesHostWithUri()
151
    {
@@ 150-156 (lines=7) @@
147
        $this->assertEquals('a.com', $r2->getHeaderLine('Host'));
148
    }
149
150
    public function testOverridesHostWithUri()
151
    {
152
        $r = new Request('GET', 'http://foo.com/baz?bar=bam');
153
        $this->assertEquals(['Host' => ['foo.com']], $r->getHeaders());
154
        $r2 = $r->withUri(new Uri('http://www.baz.com/bar'));
155
        $this->assertEquals('www.baz.com', $r2->getHeaderLine('Host'));
156
    }
157
158
    public function testAggregatesHeaders()
159
    {