GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

TestClientStub   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A loadFixtures() 0 14 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Alekseytupichenkov\GuzzleStub\Tests\Functional\Stub;
6
7
use Alekseytupichenkov\GuzzleStub\Model\Fixture;
8
use Alekseytupichenkov\GuzzleStub\Tests\Functional\Client\TestClient;
9
use Alekseytupichenkov\GuzzleStub\Traits\GuzzleClientTrait;
10
use GuzzleHttp\Psr7\Request;
11
use GuzzleHttp\Psr7\Response;
12
13
class TestClientStub extends TestClient
14
{
15
    use GuzzleClientTrait;
16
17
    public function loadFixtures()
18
    {
19
        $this->append(new Fixture(
20
            new Request('POST', 'http://foo.bar/foo/bar', [
21
                'token' => '.*',
22
            ], '{"data":".*"}'),
23
            new Response(200, [], '{"result":"ok"}')
24
        ));
25
26
        $this->append(new Fixture(
27
            new Request('POST', 'http://foo.bar/foo/baz', [
28
                'token' => '.*',
29
            ], '{"data":".*"}'),
30
            new Response(200, [], '{"result":"error"}')
31
        ));
32
    }
33
}
34