Skip to content
Permalink
Browse files

Replaced deprecated function with latest function

  • Loading branch information...
sohelrana820 committed Mar 30, 2018
1 parent dac4bb3 commit 95ab689d90dd263f1ea3f3fc20f6208c1c186d9a
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/TestCase/Http/ClientTest.php
@@ -38,17 +38,17 @@ public function testConstructConfig()
'host' => 'example.org',
];
$http = new Client($config);
$result = $http->config();
$result = $http->getConfig();
foreach ($config as $key => $val) {
$this->assertEquals($val, $result[$key]);
}
$result = $http->config([
$result = $http->setConfig([
'auth' => ['username' => 'mark', 'password' => 'secret']
]);
$this->assertSame($result, $http);
$result = $http->config();
$result = $http->getConfig();
$expected = [
'scheme' => 'http',
'host' => 'example.org',

0 comments on commit 95ab689

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.