public function test_base_url() { $this->client->setBaseUrl('https://mcprohosting.com'); $this->assertEquals('https://mcprohosting.com/foo/bar', $this->client->buildUrl('/foo/bar')); $this->assertEquals('https://mcprohosting.com/foo/bar', $this->client->buildUrl('foo/bar')); $this->client->setBaseUrl('https://mcprohosting.com/'); $this->assertEquals('https://mcprohosting.com/foo/bar', $this->client->buildUrl('/foo/bar')); $this->assertEquals('https://mcprohosting.com/foo/bar', $this->client->buildUrl('foo/bar')); }