Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/store/vendor/sainsburys/guzzle-oauth2-plugin/tests/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/store/vendor/sainsburys/guzzle-oauth2-plugin/tests/AccessTokenTest.php

<?php

namespace Sainsburys\Guzzle\Oauth2\Tests;

use Sainsburys\Guzzle\Oauth2\AccessToken;

class AccessTokenTest extends \PHPUnit_Framework_TestCase
{
    public function testAccessTokenGetters()
    {
        $data = [
            'access_token' => 'testToken',
            'token_type' => 'bearer',
            'expires_in' => 300,
            'scope' => 'profile administration',
            'refresh_token' => 'testRefreshToken',
        ];
        $token = new AccessToken($data['access_token'], $data['token_type'], $data);
        $this->assertEquals($data['access_token'], $token->getToken());
        $this->assertEquals($data['token_type'], $token->getType());
        $this->assertEquals($data['scope'], $token->getScope());
        $this->assertGreaterThan(time(), $token->getExpires()->getTimestamp());
        $this->assertFalse($token->isExpired());
        $this->assertEquals($data, $token->getData());
        $this->assertEquals('refresh_token', $token->getRefreshToken()->getType());
        $this->assertEquals($data['refresh_token'], $token->getRefreshToken()->getToken());
    }

    public function testAccessTokenSetExpiresDirect()
    {
        $token = new AccessToken('testToken', 'bearer', ['expires' => 500]);
        $this->assertTrue($token->isExpired());

        $token = new AccessToken('testToken', 'bearer', ['expires' => time() + 500]);
        $this->assertFalse($token->isExpired());
    }
}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net