コード例 #1
0
 /**
  * @dataProvider getKeysUrls
  */
 public function testCanCreateTheUrl($url)
 {
     $keysUrl = KeysUrl::factory($url);
     $this->assertSame($url, (string) $keysUrl);
 }
コード例 #2
0
 /**
  * Get a URL for the keys endpoint
  *
  * @return Http\KeysUrl
  */
 public function getKeysUrl()
 {
     return Http\KeysUrl::factory($this->getBaseUrl() . '/keys.json', $this->getConfig('privateKey'), $this->getPublicKey());
 }