From b487d45483249fdd41f29a3f8aafe42354ba4c6e Mon Sep 17 00:00:00 2001 From: Rick Ogden Date: Tue, 17 Dec 2024 11:08:42 +0000 Subject: [PATCH] Update http_client.rst Test Examples Reordered assertSame arguments to use the conventional and consistent order to `$this->assertSame($expected, $actual);`. --- http_client.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http_client.rst b/http_client.rst index e7128f1bc66..32ef552c64f 100644 --- a/http_client.rst +++ b/http_client.rst @@ -2233,7 +2233,7 @@ test it in a real application:: ); $this->assertSame($expectedRequestData, $mockResponse->getRequestOptions()['body']); - $this->assertSame($responseData, $expectedResponseData); + $this->assertSame($expectedResponseData, $responseData); } } @@ -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); } }