public function testHasAllowedScope() { $client = new Client(['id' => 'pablodip', 'allowedScopes' => ['foo']]); $this->assertTrue($client->hasAllowedScope('foo')); $this->assertFalse($client->hasAllowedScope('bar')); }