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.

Code Duplication    Length = 42-43 lines in 3 locations

test/Claim/PrivateClaimTest.php 1 location

@@ 5-47 (lines=43) @@
2
3
namespace Emarref\Jwt\Claim;
4
5
class PrivateClaimTest extends \PHPUnit_Framework_TestCase
6
{
7
    private static $name  = 'foo';
8
    private static $value = 'bar';
9
10
    /**
11
     * @var PrivateClaim
12
     */
13
    private $claim;
14
15
    public function setUp()
16
    {
17
        $this->claim = new PrivateClaim(self::$name, self::$value);
18
    }
19
20
    public function testGetName()
21
    {
22
        $this->assertSame(self::$name, $this->claim->getName());
23
    }
24
25
    public function testSetName()
26
    {
27
        $newName = 'baz';
28
29
        $this->claim->setName($newName);
30
31
        $this->assertSame($newName, $this->claim->getName());
32
    }
33
34
    public function testGetValue()
35
    {
36
        $this->assertSame(self::$value, $this->claim->getValue());
37
    }
38
39
    public function testSetValue()
40
    {
41
        $newValue = 'NewValue';
42
43
        $this->claim->setValue($newValue);
44
45
        $this->assertSame($newValue, $this->claim->getValue());
46
    }
47
}
48

test/Claim/PublicClaimTest.php 1 location

@@ 5-47 (lines=43) @@
2
3
namespace Emarref\Jwt\Claim;
4
5
class PublicClaimTest extends \PHPUnit_Framework_TestCase
6
{
7
    private static $name  = 'foo://bar';
8
    private static $value = 'baz';
9
10
    /**
11
     * @var PublicClaim
12
     */
13
    private $claim;
14
15
    public function setUp()
16
    {
17
        $this->claim = new PublicClaim(self::$name, self::$value);
18
    }
19
20
    public function testGetName()
21
    {
22
        $this->assertSame(self::$name, $this->claim->getName());
23
    }
24
25
    public function testSetName()
26
    {
27
        $newName = 'foo://baz';
28
29
        $this->claim->setName($newName);
30
31
        $this->assertSame($newName, $this->claim->getName());
32
    }
33
34
    public function testGetValue()
35
    {
36
        $this->assertSame(self::$value, $this->claim->getValue());
37
    }
38
39
    public function testSetValue()
40
    {
41
        $newValue = 'NewValue';
42
43
        $this->claim->setValue($newValue);
44
45
        $this->assertSame($newValue, $this->claim->getValue());
46
    }
47
}
48

test/HeaderParameter/CustomTest.php 1 location

@@ 5-46 (lines=42) @@
2
3
namespace Emarref\Jwt\HeaderParameter;
4
5
class CustomTest extends \PHPUnit_Framework_TestCase
6
{
7
    private static $name  = 'cus';
8
    private static $value = 'foobar';
9
10
    /**
11
     * @var Custom
12
     */
13
    private $parameter;
14
15
    public function setUp()
16
    {
17
        $this->parameter = new Custom(self::$name, self::$value);
18
    }
19
20
    public function testGetName()
21
    {
22
        $this->assertSame(self::$name, $this->parameter->getName());
23
    }
24
25
    public function testSetName()
26
    {
27
        $newValue = 'baz';
28
29
        $this->parameter->setName($newValue);
30
31
        $this->assertSame($newValue, $this->parameter->getName());
32
    }
33
34
    public function testGetValue()
35
    {
36
        $this->assertSame(self::$value, $this->parameter->getValue());
37
    }
38
39
    public function testSetValue()
40
    {
41
        $newValue = 'NewValue';
42
43
        $this->parameter->setValue($newValue);
44
        $this->assertSame($newValue, $this->parameter->getValue());
45
    }
46
}
47