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

ClaimsCollectorTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
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\Jwt\Claims;
6
7
use Damax\Bundle\ApiAuthBundle\Jwt\Claims\ClaimsCollector;
8
use Damax\Bundle\ApiAuthBundle\Jwt\Claims\FixedClaims;
9
use PHPUnit\Framework\TestCase;
10
use Symfony\Component\Security\Core\User\User;
11
12
class ClaimsCollectorTest extends TestCase
13
{
14
    /**
15
     * @test
16
     */
17
    public function it_resolves_claims()
18
    {
19
        $user = new User('[email protected]', 'qwerty');
20
21
        $collector = new ClaimsCollector([
22
            new FixedClaims(['foo' => 'bar', 'baz' => 'qux']),
23
            new FixedClaims(['abc' => 'xyz', 'foo' => 'foo']),
24
        ]);
25
26
        $this->assertEquals(['foo' => 'foo', 'baz' => 'qux', 'abc' => 'xyz'], $collector->resolve($user));
27
    }
28
}
29