コード例 #1
0
ファイル: TokenResponseTest.php プロジェクト: Farik2605/tobi
 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());
 }
コード例 #2
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());
 }