Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Typo in CdekClient
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Oct 9, 2018
1 parent b4341fa commit 5ef9c14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CdekClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function sendRequest(Request $request, \DateTimeInterface $requestDate =
}

if ($this->logger) {
$this->logger->debug('CDEK API responded with a HTTP error code {error_code}', [
$this->logger->debug('CDEK API responded with an HTTP error code {error_code}', [
'exception' => $exception,
'error_code' => $exception->getCode(),
]);
Expand Down
2 changes: 1 addition & 1 deletion tests/CdekClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function test_client_can_handle_error_response()
//$this->expectException(\RuntimeException::class);
$response = $client->sendInfoReportRequest(new InfoReportRequest());
$this->assertSame(2, $logger->log->countRecordsWithLevel(LogLevel::DEBUG));
$this->assertTrue($logger->log->hasRecordsWithPartialMessage('CDEK API responded with a HTTP error code'));
$this->assertTrue($logger->log->hasRecordsWithPartialMessage('CDEK API responded with an HTTP error code'));

$this->assertSame(1, $logger->log->countRecordsWithContextKey('exception'));
$this->assertSame(1, $logger->log->countRecordsWithContextKey('error_code'));
Expand Down

0 comments on commit 5ef9c14

Please sign in to comment.