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.
Failed Conditions
Pull Request — master (#1)
by Pascal
02:45
created

ErrorTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testObjectInitializesCorrectlyWithoutCode() 0 7 1
A testObjectInitializesCorrectly() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Saikootau\ApiBundle\Tests\Resource;
6
7
use PHPUnit\Framework\TestCase;
8
use Saikootau\ApiBundle\Resource\Error;
9
10
class ErrorTest extends TestCase
11
{
12
    public function testObjectInitializesCorrectly(): void
13
    {
14
        $error = new Error('TestType', 'foo bar', '1337');
15
16
        $this->assertSame('TestType', $error->getType());
17
        $this->assertSame('foo bar', $error->getMessage());
18
        $this->assertSame('1337', $error->getCode());
19
    }
20
21
    public function testObjectInitializesCorrectlyWithoutCode(): void
22
    {
23
        $error = new Error('TestType', 'foo bar');
24
25
        $this->assertSame('TestType', $error->getType());
26
        $this->assertSame('foo bar', $error->getMessage());
27
        $this->assertNull($error->getCode());
28
    }
29
}
30