fkooman\OAuth\Client\TokenResponseTest::testScope PHP Méthode

testScope() public méthode

public testScope ( )
    public function testScope()
    {
        $t = new TokenResponse(array('access_token' => 'foo', 'token_type' => 'Bearer', 'scope' => 'foo bar baz baz'));
        // scope will be sorted de-duplicated string space separated
        $this->assertEquals('bar baz foo', $t->getScope()->toString());
    }