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 = 33-33 lines in 13 locations

test/Claim/IssuerTest.php 1 location

@@ 5-37 (lines=33) @@
2
3
namespace Emarref\Jwt\Claim;
4
5
class IssuerTest extends \PHPUnit_Framework_TestCase
6
{
7
    private static $name  = 'iss';
8
    private static $value = 'foobar';
9
10
    /**
11
     * @var Issuer
12
     */
13
    private $claim;
14
15
    public function setUp()
16
    {
17
        $this->claim = new Issuer(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 testSetValue()
31
    {
32
        $newValue = 'NewValue';
33
34
        $this->claim->setValue($newValue);
35
        $this->assertSame($newValue, $this->claim->getValue());
36
    }
37
}
38

test/Claim/JwtIdTest.php 1 location

@@ 5-37 (lines=33) @@
2
3
namespace Emarref\Jwt\Claim;
4
5
class JwtIdTest extends \PHPUnit_Framework_TestCase
6
{
7
    private static $name  = 'jti';
8
    private static $value = 'foobar';
9
10
    /**
11
     * @var JwtId
12
     */
13
    private $claim;
14
15
    public function setUp()
16
    {
17
        $this->claim = new JwtId(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 testSetValue()
31
    {
32
        $newValue = 'NewValue';
33
34
        $this->claim->setValue($newValue);
35
        $this->assertSame($newValue, $this->claim->getValue());
36
    }
37
}
38

test/Claim/SubjectTest.php 1 location

@@ 5-37 (lines=33) @@
2
3
namespace Emarref\Jwt\Claim;
4
5
class SubjectTest extends \PHPUnit_Framework_TestCase
6
{
7
    private static $name  = 'sub';
8
    private static $value = 'foobar';
9
10
    /**
11
     * @var Subject
12
     */
13
    private $claim;
14
15
    public function setUp()
16
    {
17
        $this->claim = new Subject(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 testSetValue()
31
    {
32
        $newValue = 'NewValue';
33
34
        $this->claim->setValue($newValue);
35
        $this->assertSame($newValue, $this->claim->getValue());
36
    }
37
}
38

test/HeaderParameter/AlgorithmTest.php 1 location

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

test/HeaderParameter/ContentTypeTest.php 1 location

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

test/HeaderParameter/JsonWebKeyTest.php 1 location

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

test/HeaderParameter/JwkSetUrlTest.php 1 location

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

test/HeaderParameter/KeyIdTest.php 1 location

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

test/HeaderParameter/TypeTest.php 1 location

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

test/HeaderParameter/X509CertificateChainTest.php 1 location

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

test/HeaderParameter/X509CertificateSha1ThumbprintTest.php 1 location

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

test/HeaderParameter/X509CertificateSha256ThumbprintTest.php 1 location

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

test/HeaderParameter/X509UrlTest.php 1 location

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