Code Duplication    Length = 12-12 lines in 2 locations

spec/Anshar/Http/RequestSpec.php 2 locations

@@ 676-687 (lines=12) @@
673
     *
674
     * @param \PhpSpec\Wrapper\Collaborator|UriInterface $uri
675
     */
676
    function it_returns_a_new_request_with_a_host_when_no_host_set(UriInterface $uri)
677
    {
678
        $host = "www.baz.qux";
679
680
        $uri->getHost()->willReturn($host);
681
682
        $no_host = $this->withoutHeader("host");
683
684
        $request = $no_host->withUri($uri, true);
685
686
        $request->getHeaderLine("host")->shouldReturn($host);
687
    }
688
689
    /**
690
     * When `$preserveHost` is set to `true`, this method interacts with the
@@ 699-710 (lines=12) @@
696
     *
697
     * @param \PhpSpec\Wrapper\Collaborator|UriInterface $uri
698
     */
699
    function it_returns_a_new_request_with_a_host_when_empty_host_set(UriInterface $uri)
700
    {
701
        $host = "www.baz.qux";
702
703
        $uri->getHost()->willReturn($host);
704
705
        $empty_host = $this->withHeader("host","");
706
707
        $request = $empty_host->withUri($uri, true);
708
709
        $request->getHeaderLine("host")->shouldReturn($host);
710
    }
711
712
    /**
713
     * When `$preserveHost` is set to `true`, this method interacts with the