We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84fe926 commit c33c00cCopy full SHA for c33c00c
test/unit/ClientTest.php
@@ -76,6 +76,13 @@ public function testGetHost()
76
$this->assertSame('https://localhost:4010', $client->getHost());
77
}
78
79
+ public function testSetHost()
80
+ {
81
+ $client = new Client('https://localhost:4010');
82
+ $client->setHost("https://api.test.com");
83
+ $this->assertSame('https://api.test.com', $client->getHost());
84
+ }
85
+
86
public function testGetHeaders()
87
{
88
$client = new Client(
@@ -229,7 +236,7 @@ public function testFormRepeatUrlArgs()
229
236
],
230
237
];
231
238
$result = $this->callMethod($client, 'buildUrl', [$testParams]);
232
- $this->assertEquals($result, 'https://localhost:4010/?thing=stuff&foo=bar&foo=bat&foo=baz');
239
+ $this->assertEquals('https://localhost:4010/?thing=stuff&foo=bar&foo=bat&foo=baz', $result);
233
240
234
241
235
242
/**
0 commit comments