Code Duplication    Length = 8-8 lines in 2 locations

tests/unit/Auth/OAuth2/AccessTokenTest.php 2 locations

@@ 31-38 (lines=8) @@
28
        static::assertFalse($token->isExpired());
29
    }
30
31
    public function testTokenWithExpiryIsShown()
32
    {
33
        $expires = (new DateTime())->add(new DateInterval('PT60S'));
34
        $token = new AccessToken('token', $expires);
35
        static::assertEquals('token', $token->getToken());
36
        static::assertLessThanOrEqual($expires, $token->getExpires());
37
        static::assertFalse($token->isExpired());
38
    }
39
40
    public function testTokenWithExpiryAsNowIsExpired()
41
    {
@@ 40-47 (lines=8) @@
37
        static::assertFalse($token->isExpired());
38
    }
39
40
    public function testTokenWithExpiryAsNowIsExpired()
41
    {
42
        $expires = new DateTime();
43
        $token = new AccessToken('token', $expires);
44
        static::assertEquals('token', $token->getToken());
45
        static::assertLessThanOrEqual($expires, $token->getExpires());
46
        static::assertTrue($token->isExpired());
47
    }
48
49
    public function testProperties()
50
    {