public static function clearCurlOpts() { return self::$curlOpts = array(); }
public function testCurlOpts() { Request::curlOpt(CURLOPT_COOKIE, 'foo=bar'); $response = Request::get('http://mockbin.com/request'); $this->assertTrue(property_exists($response->body->cookies, 'foo')); Request::clearCurlOpts(); }