public function testPostGetUrl() { // should return https://www.soundcloud.com/resolve $auth = new Auth("ClientIDHash"); $resource = new Resource('get', '/resolve'); $resource->setParams(array('client_id' => $auth->getClientID(), 'url' => 'http://soundcloud.com/matas/hobnotropic')); $builder = new UrlBuilder($resource); $this->assertEquals("https://api.soundcloud.com/resolve?client_id=ClientIDHash&url=" . "http%3A%2F%2Fsoundcloud.com%2Fmatas%2Fhobnotropic", $builder->getUrl()); }
public function testSetAndGetClientID() { $auth = new Auth("ClientIDHash"); $this->assertEquals("ClientIDHash", $auth->getClientID()); }