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