Ejemplo n.º 1
0
 /** @dataProvider provideStorage */
 public function testIsPublicClient(ClientInterface $storage)
 {
     $this->assertFalse($storage->isPublicClient('testclient'));
     // FIXME:  add a test which can return true
     // $this->assertTrue($storage->isPublicClient('oauth_test_client3'));
     $this->assertFalse($storage->isPublicClient('invalidclient'));
 }
 /** @dataProvider provideStorage */
 public function testIsPublicClient(ClientInterface $storage)
 {
     $this->assertFalse($storage->isPublicClient('oauth_test_client'));
     $this->assertTrue($storage->isPublicClient('oauth_test_client3'));
     $this->assertFalse($storage->isPublicClient('invalidclient'));
     $this->assertTrue($storage->isPublicClient('event_stop_propagation'));
 }