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
Pull Request — master (#1)
by Pascal
05:27 queued 02:33
created

testObjectInitializesCorrectlyWithoutCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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