Skip to content

[HttpClient] Update http_client.rst Test Examples #20474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions http_client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2233,7 +2233,7 @@ test it in a real application::
);
$this->assertSame($expectedRequestData, $mockResponse->getRequestOptions()['body']);

$this->assertSame($responseData, $expectedResponseData);
$this->assertSame($expectedResponseData, $responseData);
}
}

Expand Down Expand Up @@ -2266,7 +2266,7 @@ test. Then, save that information as a ``.har`` file somewhere in your applicati
$responseData = $service->createArticle($requestData);

// Assert
$this->assertSame($responseData, 'the expected response');
$this->assertSame('the expected response', $responseData);
}
}

Expand Down
Loading