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.
Completed
Push — master ( 1c3add...d596d4 )
by Tupichenkov
03:10
created

GuzzleStubExceptionTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 39
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testResponseNotFound() 0 30 1
A testCantFoundHistoryWithIndex() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Alekseytupichenkov\GuzzleStub\Tests\Unit\Exception;
6
7
use Alekseytupichenkov\GuzzleStub\Exception\GuzzleStubException;
8
use GuzzleHttp\Psr7\Request;
9
use PHPUnit\Framework\TestCase;
10
11
class GuzzleStubExceptionTest extends TestCase
12
{
13
    public function testResponseNotFound()
14
    {
15
        $request = new Request('POST', 'http://foo.bar/baz', [
16
            'foo' => 'bar',
17
            'baz' => 1,
18
        ], 'SuperBody');
19
20
        $e = GuzzleStubException::responseNotFound($request);
21
22
        $this->assertEquals("Can`t find suitable response for request [array (
23
  'method' => 'POST',
24
  'uri' => 'http://foo.bar/baz',
25
  'body' => 'SuperBody',
26
  'protocol_version' => '1.1',
27
  'headers' => 
28
  array (
29
    'Host' => 
30
    array (
31
      0 => 'foo.bar',
32
    ),
33
    'foo' => 
34
    array (
35
      0 => 'bar',
36
    ),
37
    'baz' => 
38
    array (
39
      0 => '1',
40
    ),
41
  ),
42
)]", $e->getMessage());
43
    }
44
45
    public function testCantFoundHistoryWithIndex()
46
    {
47
        $e = GuzzleStubException::cantFoundHistoryWithIndex(1);
48
49
        $this->assertEquals('Can`t found history with index 1', $e->getMessage());
50
    }
51
}
52