/** @dataProvider provideStorage */
 public function testGetAccessToken(ClientInterface $storage)
 {
     if ($storage instanceof NullStorage) {
         $this->markTestSkipped('Skipped Storage: ' . $storage->getMessage());
         return;
     }
     // nonexistant client_id
     $details = $storage->getAccessToken('faketoken');
     $this->assertFalse($details);
     // valid client_id
     $details = $storage->getAccessToken('testtoken');
     $this->assertNotNull($details);
 }
 /**
  * Updates the given client in the underlying data layer.
  *
  * @param ClientInterface $client
  * @return void
  */
 public function updateClient(ClientInterface $client)
 {
     if (isset($this->clients[$client->getAccessToken()])) {
         $this->clients[$client->getAccessToken()] = $client;
     }
 }