Skip to content

Commit 9188b3a

Browse files
Updating docs to new default algo sha1 (#66)
1 parent da2666b commit 9188b3a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Codeception/Module/REST.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -1557,17 +1557,17 @@ public function dontSeeXmlResponseIncludes($xml): void
15571557

15581558
/**
15591559
* Checks if the hash of a binary response is exactly the same as provided.
1560-
* Parameter can be passed as any hash string supported by hash(), with an
1561-
* optional second parameter to specify the hash type, which defaults to md5.
1560+
* Parameter can be passed as any hash string supported by `hash()`, with an
1561+
* optional second parameter to specify the hash type, which defaults to sha1.
15621562
*
1563-
* Example: Using md5 hash key
1563+
* Example: Using sha1 hash key
15641564
*
15651565
* ```php
15661566
* <?php
1567-
* $I->seeBinaryResponseEquals("8c90748342f19b195b9c6b4eff742ded");
1567+
* $I->seeBinaryResponseEquals("df589122eac0f6a7bd8795436e692e3675cadc3b");
15681568
* ```
15691569
*
1570-
* Example: Using md5 for a file contents
1570+
* Example: Using sha1 for a file contents
15711571
*
15721572
* ```php
15731573
* <?php
@@ -1583,7 +1583,7 @@ public function dontSeeXmlResponseIncludes($xml): void
15831583
* ```
15841584
*
15851585
* @param string $hash the hashed data response expected
1586-
* @param string $algo the hash algorithm to use. Default md5.
1586+
* @param string $algo the hash algorithm to use. Default sha1.
15871587
* @part json
15881588
* @part xml
15891589
*/

0 commit comments

Comments
 (0)