Skip to content
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
12 changes: 6 additions & 6 deletions src/Codeception/Module/REST.php
Original file line number Diff line number Diff line change
Expand Up @@ -1557,17 +1557,17 @@ public function dontSeeXmlResponseIncludes($xml): void

/**
* Checks if the hash of a binary response is exactly the same as provided.
* Parameter can be passed as any hash string supported by hash(), with an
* optional second parameter to specify the hash type, which defaults to md5.
* Parameter can be passed as any hash string supported by `hash()`, with an
* optional second parameter to specify the hash type, which defaults to sha1.
*
* Example: Using md5 hash key
* Example: Using sha1 hash key
*
* ```php
* <?php
* $I->seeBinaryResponseEquals("8c90748342f19b195b9c6b4eff742ded");
* $I->seeBinaryResponseEquals("df589122eac0f6a7bd8795436e692e3675cadc3b");
* ```
*
* Example: Using md5 for a file contents
* Example: Using sha1 for a file contents
*
* ```php
* <?php
Expand All @@ -1583,7 +1583,7 @@ public function dontSeeXmlResponseIncludes($xml): void
* ```
*
* @param string $hash the hashed data response expected
* @param string $algo the hash algorithm to use. Default md5.
* @param string $algo the hash algorithm to use. Default sha1.
* @part json
* @part xml
*/
Expand Down