Code Duplication    Length = 11-11 lines in 2 locations

src/Shared/Testing/HttpRequestCapabilities.php 2 locations

@@ 53-63 (lines=11) @@
50
        return $application->handleRequest($request, new Response());
51
    }
52
53
    public function sendPost(string $uri,  array $body, array $headers = []): ResponseInterface
54
    {
55
        $stream = $this->streamFor($body);
56
57
        $request = $this->createRequest('POST', $uri)
58
            ->withBody($stream);
59
60
        $request = $this->addHeaders($headers, $request);
61
62
        return $this->send($request);
63
    }
64
65
    /**
66
     * @see https://github.com/guzzle/psr7/blob/master/src/functions.php
@@ 81-91 (lines=11) @@
78
        return new Stream($stream);
79
    }
80
81
    public function sendPut(string $uri,  array $body, array $headers = []): ResponseInterface
82
    {
83
        $stream = $this->streamFor($body);
84
85
        $request = $this->createRequest('PUT', $uri)
86
            ->withBody($stream);
87
88
        $request = $this->addHeaders($headers, $request);
89
90
        return $this->send($request);
91
    }
92
93
    public function sendDelete(string $uri, array $headers = []): ResponseInterface
94
    {