• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tylernathanreed / jira-client-php / 14503644156

16 Apr 2025 10:16PM UTC coverage: 81.656% (-0.4%) from 82.08%
14503644156

push

github

tylernathanreed
- Dropped guzzle as a requirement

53 of 99 new or added lines in 8 files covered. (53.54%)

5738 of 7027 relevant lines covered (81.66%)

10.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Http/CurlTransporter.php
1
<?php
2

3
namespace Jira\Client\Http;
4

5
use CurlHandle;
6
use Jira\Client\Configuration;
7
use Jira\Client\Http\Transporter;
8

9
class CurlTransporter extends Transporter
10
{
NEW
11
    public function newResponse(Request $request, Configuration $config): Response
×
12
    {
NEW
13
        $handle = $this->newCurlHandle($request, $config);
×
14

NEW
15
        $response = curl_exec($handle);
×
16

NEW
17
        return new Response(
×
NEW
18
            status: curl_getinfo($handle, CURLINFO_HTTP_CODE),
×
NEW
19
            body: $response,
×
NEW
20
        );
×
21
    }
22

NEW
23
    protected function newCurlHandle(Request $request, Configuration $config): CurlHandle
×
24
    {
NEW
25
        $handle = curl_init();
×
26

NEW
27
        curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 10);
×
NEW
28
        curl_setopt($handle, CURLOPT_TIMEOUT, 30);
×
NEW
29
        curl_setopt($handle, CURLOPT_VERBOSE, $config->debug);
×
NEW
30
        curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
×
NEW
31
        curl_setopt($handle, CURLOPT_POST, true);
×
NEW
32
        curl_setopt($handle, CURLOPT_URL, $request->uri);
×
NEW
33
        curl_setopt($handle, CURLOPT_FOLLOWLOCATION, true);
×
34
        // curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, $config->verify);
35
        // curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, $config->verify);
36

NEW
37
        return $handle;
×
38
    }
39
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc