Code Duplication    Length = 8-8 lines in 2 locations

src/Dev/FunctionalTest.php 2 locations

@@ 158-165 (lines=8) @@
155
     * @param array $cookies
156
     * @return HTTPResponse
157
     */
158
    public function get($url, $session = null, $headers = null, $cookies = null)
159
    {
160
        $this->cssParser = null;
161
        $response = $this->mainSession->get($url, $session, $headers, $cookies);
162
        if ($this->autoFollowRedirection && is_object($response) && $response->getHeader('Location')) {
163
            $response = $this->mainSession->followRedirection();
164
        }
165
        return $response;
166
    }
167
168
    /**
@@ 180-187 (lines=8) @@
177
     * @param array $cookies
178
     * @return HTTPResponse
179
     */
180
    public function post($url, $data, $headers = null, $session = null, $body = null, $cookies = null)
181
    {
182
        $this->cssParser = null;
183
        $response = $this->mainSession->post($url, $data, $headers, $session, $body, $cookies);
184
        if ($this->autoFollowRedirection && is_object($response) && $response->getHeader('Location')) {
185
            $response = $this->mainSession->followRedirection();
186
        }
187
        return $response;
188
    }
189
190
    /**