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::loadFixtures()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
nc 1
nop 0
dl 0
loc 14
rs 9.9332
c 0
b 0
f 0
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