Skip to content

Commit

Permalink
Fix TraceableHttpClientTest::testRequestSetsUnknownErrorAsSpanStatusI…
Browse files Browse the repository at this point in the history
…fResponseStatusCodeIsUnavailable
  • Loading branch information
cleptric committed Apr 2, 2024
1 parent ec3d0d0 commit 8fb223c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Tracing/HttpClient/TraceableHttpClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,18 +208,18 @@ public function testRequestSetsUnknownErrorAsSpanStatusIfResponseStatusCodeIsUna
'dsn' => 'http://public:[email protected]/sentry/1',
]);
$client = $this->createMock(ClientInterface::class);
$client->expects($this->once())
$client->expects($this->exactly(2))
->method('getOptions')
->willReturn($options);

$transaction = new Transaction(new TransactionContext());
$transaction = new Transaction(new TransactionContext(), $this->hub);
$transaction->initSpanRecorder();

$this->hub->expects($this->once())
->method('getSpan')
->willReturn($transaction);

$this->hub->expects($this->once())
$this->hub->expects($this->exactly(2))
->method('getClient')
->willReturn($client);

Expand Down

0 comments on commit 8fb223c

Please sign in to comment.