Skip to content

Commit 48aadc5

Browse files
committed
minor #20474 [HttpClient] Update http_client.rst Test Examples (rickogden)
This PR was submitted for the 7.2 branch but it was merged into the 6.4 branch instead. Discussion ---------- [HttpClient] Update http_client.rst Test Examples Reordered assertSame arguments to use the conventional and consistent order to `$this->assertSame($expected, $actual);`. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- b487d45 Update http_client.rst Test Examples
2 parents 0a53599 + b487d45 commit 48aadc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http_client.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -2233,7 +2233,7 @@ test it in a real application::
22332233
);
22342234
$this->assertSame($expectedRequestData, $mockResponse->getRequestOptions()['body']);
22352235

2236-
$this->assertSame($responseData, $expectedResponseData);
2236+
$this->assertSame($expectedResponseData, $responseData);
22372237
}
22382238
}
22392239

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

22682268
// Assert
2269-
$this->assertSame($responseData, 'the expected response');
2269+
$this->assertSame('the expected response', $responseData);
22702270
}
22712271
}
22722272

0 commit comments

Comments
 (0)