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
Push — master ( a17582...d97b9d )
by Malcolm
07:04 queued 04:10
created

FactoryTest::testGetPrivate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Emarref\Jwt\Claim;
4
5
class FactoryTest extends \PHPUnit_Framework_TestCase
6
{
7
    private static $classMap = [
8
        Audience::NAME   => 'Emarref\Jwt\Claim\Audience',
9
        Expiration::NAME => 'Emarref\Jwt\Claim\Expiration',
10
        IssuedAt::NAME   => 'Emarref\Jwt\Claim\IssuedAt',
11
        Issuer::NAME     => 'Emarref\Jwt\Claim\Issuer',
12
        JwtId::NAME      => 'Emarref\Jwt\Claim\JwtId',
13
        NotBefore::NAME  => 'Emarref\Jwt\Claim\NotBefore',
14
        Subject::NAME    => 'Emarref\Jwt\Claim\Subject',
15
        'private'        => 'Emarref\Jwt\Claim\PrivateClaim',
16
    ];
17
18
    /**
19
     * @var Factory
20
     */
21
    private $factory;
22
23
    public function setUp()
24
    {
25
        $this->factory = new Factory();
26
    }
27
28
    public function testGetAudience()
29
    {
30
        $this->assertInstanceOf(self::$classMap[Audience::NAME], $this->factory->get(Audience::NAME));
31
    }
32
33
    public function testGetExpiration()
34
    {
35
        $this->assertInstanceOf(self::$classMap[Expiration::NAME], $this->factory->get(Expiration::NAME));
36
    }
37
38
    public function testGetIssuedAt()
39
    {
40
        $this->assertInstanceOf(self::$classMap[IssuedAt::NAME], $this->factory->get(IssuedAt::NAME));
41
    }
42
43
    public function testGetIssuer()
44
    {
45
        $this->assertInstanceOf(self::$classMap[Issuer::NAME], $this->factory->get(Issuer::NAME));
46
    }
47
48
    public function testGetJwtId()
49
    {
50
        $this->assertInstanceOf(self::$classMap[JwtId::NAME], $this->factory->get(JwtId::NAME));
51
    }
52
53
    public function testGetNotBefore()
54
    {
55
        $this->assertInstanceOf(self::$classMap[NotBefore::NAME], $this->factory->get(NotBefore::NAME));
56
    }
57
58
    public function testGetSubject()
59
    {
60
        $this->assertInstanceOf(self::$classMap[Subject::NAME], $this->factory->get(Subject::NAME));
61
    }
62
63
    public function testGetPrivate()
64
    {
65
        $this->assertInstanceOf(self::$classMap['private'], $this->factory->get('unknown'));
66
    }
67
}
68