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.

AudienceTest::testArrayValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 5
c 1
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Emarref\Jwt\Claim;
4
5
class AudienceTest extends \PHPUnit_Framework_TestCase
6
{
7
    private static $name  = 'aud';
8
    private static $value = 'foobar';
9
10
    /**
11
     * @var Audience
12
     */
13
    private $claim;
14
15
    public function setUp()
16
    {
17
        $this->claim = new Audience(self::$value);
18
    }
19
20
    public function testGetName()
21
    {
22
        $this->assertSame(self::$name, $this->claim->getName());
23
    }
24
25
    public function testGetValue()
26
    {
27
        $this->assertSame(self::$value, $this->claim->getValue());
28
    }
29
30
    public function testStringValue()
31
    {
32
        $newValue = 'NewValue';
33
34
        $this->claim->setValue($newValue);
35
        $this->assertSame($newValue, $this->claim->getValue());
36
    }
37
38
    public function testArrayValue()
39
    {
40
        $this->claim->setValue([self::$value]);
41
        $this->assertSame([self::$value], $this->claim->getValue());
42
    }
43
}
44