diff --git a/test/unit/ClientTest.php b/test/unit/ClientTest.php index cfea449..55f6c10 100644 --- a/test/unit/ClientTest.php +++ b/test/unit/ClientTest.php @@ -76,6 +76,13 @@ public function testGetHost() $this->assertSame('https://localhost:4010', $client->getHost()); } + public function testSetHost() + { + $client = new Client('https://localhost:4010'); + $client->setHost("https://api.test.com"); + $this->assertSame('https://api.test.com', $client->getHost()); + } + public function testGetHeaders() { $client = new Client( @@ -229,7 +236,7 @@ public function testFormRepeatUrlArgs() ], ]; $result = $this->callMethod($client, 'buildUrl', [$testParams]); - $this->assertEquals($result, 'https://localhost:4010/?thing=stuff&foo=bar&foo=bat&foo=baz'); + $this->assertEquals('https://localhost:4010/?thing=stuff&foo=bar&foo=bat&foo=baz', $result); } /**