Skip to content

Commit

Permalink
Replaced deprecated function with latest function
Browse files Browse the repository at this point in the history
  • Loading branch information
sohelrana820 committed Mar 30, 2018
1 parent dac4bb3 commit 95ab689
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/TestCase/Http/ClientTest.php
Expand Up @@ -38,17 +38,17 @@ public function testConstructConfig()
'host' => 'example.org', 'host' => 'example.org',
]; ];
$http = new Client($config); $http = new Client($config);
$result = $http->config(); $result = $http->getConfig();
foreach ($config as $key => $val) { foreach ($config as $key => $val) {
$this->assertEquals($val, $result[$key]); $this->assertEquals($val, $result[$key]);
} }


$result = $http->config([ $result = $http->setConfig([
'auth' => ['username' => 'mark', 'password' => 'secret'] 'auth' => ['username' => 'mark', 'password' => 'secret']
]); ]);
$this->assertSame($result, $http); $this->assertSame($result, $http);


$result = $http->config(); $result = $http->getConfig();
$expected = [ $expected = [
'scheme' => 'http', 'scheme' => 'http',
'host' => 'example.org', 'host' => 'example.org',
Expand Down

0 comments on commit 95ab689

Please sign in to comment.