Skip to content

Commit

Permalink
Update http_client.rst Test Examples
Browse files Browse the repository at this point in the history
Reordered assertSame arguments to use the conventional and consistent order to `$this->assertSame($expected, $actual);`.
  • Loading branch information
rickogden authored and javiereguiluz committed Dec 17, 2024
1 parent 0a53599 commit b487d45
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit b487d45

Please sign in to comment.