public function testGetServiceUrl() { $request = new Request(array('param1' => 'foo', 'param2' => 'bar')); $this->assertEquals(Rtm::URL_SERVICE, substr($request->getServiceUrl(), 0, strlen(Rtm::URL_AUTH))); $this->assertEquals('param1=foo¶m2=bar', parse_url($request->getServiceUrl(), PHP_URL_QUERY)); }