Code Duplication    Length = 8-14 lines in 2 locations

spec/Service/UriGenerator/Transformer/BasePathTransformerSpec.php 2 locations

@@ 55-62 (lines=8) @@
52
            ->shouldBeAnUriWithPath('/base/controller/action');
53
    }
54
55
    function it_accepts_query_params_in_options(
56
        ServerRequestInterface $request
57
    )
58
    {
59
        $this->prepareRequest($request);
60
        $this->transform('controller/action', ['query' => ['foo' => 'bar']])
61
            ->shouldBeAnUriWithPath('/base/controller/action?foo=bar');
62
    }
63
64
    function it_can_reuse_host_name_from_context_request(
65
        ServerRequestInterface $request
@@ 76-89 (lines=14) @@
73
            );
74
    }
75
76
    function it_can_reuse_the_request_query_params(
77
        ServerRequestInterface $request
78
    )
79
    {
80
        $this->prepareRequest($request);
81
82
        $this->transform('controller/action', [
83
            'reuseParams' => 1,
84
            'query' => ['foo' => 'bar']
85
        ])
86
            ->shouldBeAnUriWithPath(
87
                '/base/controller/action?foo=bar&baz=bar'
88
            );
89
    }
90
91
    /**
92
     * Prepares the request collaborator