Skip to content

Commit efdcdbf

Browse files
committed
fix test
1 parent 13f31f1 commit efdcdbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ClientTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testConstructClient()
7070
$client = new MockClient('', $handler);
7171
$client->runRawQuery('query_string', false, ['name' => 'val']);
7272

73-
$client = new MockClient('', $handler, [], ['headers' => [ 'Authorization' => 'Basic xyz', 'User-Agent' => 'test' ]]);
73+
$client = new MockClient('', $handler, ['Authorization' => 'Basic xyz'], ['headers' => [ 'Authorization' => 'Basic zyx', 'User-Agent' => 'test' ]]);
7474
$client->runRawQuery('query_string');
7575

7676
/** @var Request $firstRequest */
@@ -94,7 +94,7 @@ public function testConstructClient()
9494
$fourthRequest = $container[3]['request'];
9595
$this->assertNotNull($fourthRequest->getHeader('Authorization'));
9696
$this->assertNotEmpty($fourthRequest->getHeader('User-Agent'));
97-
$this->assertEquals(['Basic xyz'], $fourthRequest->getHeader('Authorization'));
97+
$this->assertEquals(['Basic zyx'], $fourthRequest->getHeader('Authorization'));
9898
$this->assertEquals(['test'], $fourthRequest->getHeader('User-Agent'));
9999

100100
}

0 commit comments

Comments
 (0)