コード例 #1
0
ファイル: ClientTest.php プロジェクト: akamon/oauth2-server
 public function testHasAllowedScope()
 {
     $client = new Client(['id' => 'pablodip', 'allowedScopes' => ['foo']]);
     $this->assertTrue($client->hasAllowedScope('foo'));
     $this->assertFalse($client->hasAllowedScope('bar'));
 }