public function testFullUrl() { $builder = new RequestBuilder(['domain' => 'www.domain.com', 'method' => 'get']); $builder->path(2)->subpath()->withParams([['key' => 'param1', 'value' => 'value1'], ['key' => 'param2', 'value' => 'value2']]); $this->assertEquals('www.domain.com/path/2/subpath?param1=value1¶m2=value2', $builder->getUrl()); }