Esempio n. 1
0
 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());
 }
 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());
 }