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.
Passed
Branch master (f137da)
by Dmitri
01:44
created

CookieExtractorTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Damax\Bundle\ApiAuthBundle\Tests\Extractor;
6
7
use Damax\Bundle\ApiAuthBundle\Extractor\CookieExtractor;
8
use PHPUnit\Framework\TestCase;
9
use Symfony\Component\HttpFoundation\Request;
10
11
class CookieExtractorTest extends TestCase
12
{
13
    /**
14
     * @test
15
     */
16
    public function it_extracts_key()
17
    {
18
        $request = new Request([], [], [], ['api_key' => 'XYZ']);
19
        $this->assertEquals('XYZ', (new CookieExtractor('api_key'))->extractKey($request));
20
21
        $request = new Request();
22
        $this->assertNull((new CookieExtractor('api_key'))->extractKey($request));
23
    }
24
}
25