File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,13 @@ public function testGetHost()
76
76
$ this ->assertSame ('https://localhost:4010 ' , $ client ->getHost ());
77
77
}
78
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
+
79
86
public function testGetHeaders ()
80
87
{
81
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
/**
You can’t perform that action at this time.
0 commit comments