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
07:37
created

RequestTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testObjectInitializesCorrectly() 0 9 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\Header;
9
use Saikootau\ApiBundle\Resource\Request;
10
11
class RequestTest extends TestCase
12
{
13
    public function testObjectInitializesCorrectly(): void
14
    {
15
        $header = $this->prophesize(Header::class)->reveal();
16
        $request = new Request('GET', '/test', $header);
17
18
        $this->assertSame('GET', $request->getMethod());
19
        $this->assertSame('/test', $request->getUri());
20
        $this->assertCount(1, $request->getHeaders());
21
        $this->assertContains($header, $request->getHeaders());
22
    }
23
}
24