Skip to content

Commit f24db25

Browse files
authored
Merge pull request #102 from ThomasLandauer/patch-2
Update REST.php: Changing double quotes to single quotes in the docs
2 parents fad17d4 + 460bede commit f24db25

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Codeception/Module/REST.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -933,10 +933,10 @@ public function seeResponseContainsJson(array $json = []): void
933933
*
934934
* // response {"name": "john", "age": 20}
935935
* $schema = [
936-
* "properties" => [
937-
* "age" => [
938-
* "type" => "integer",
939-
* "minimum" => 18
936+
* 'properties' => [
937+
* 'age' => [
938+
* 'type' => 'integer',
939+
* 'minimum' => 18
940940
* ]
941941
* ]
942942
* ];
@@ -1578,7 +1578,7 @@ public function dontSeeXmlResponseEquals($xml): void
15781578
*
15791579
* ``` php
15801580
* <?php
1581-
* $I->seeXmlResponseIncludes("<result>1</result>");
1581+
* $I->seeXmlResponseIncludes('<result>1</result>');
15821582
* ```
15831583
*
15841584
* @param mixed $xml
@@ -1619,22 +1619,22 @@ public function dontSeeXmlResponseIncludes($xml): void
16191619
*
16201620
* ```php
16211621
* <?php
1622-
* $I->seeBinaryResponseEquals("df589122eac0f6a7bd8795436e692e3675cadc3b");
1622+
* $I->seeBinaryResponseEquals('df589122eac0f6a7bd8795436e692e3675cadc3b');
16231623
* ```
16241624
*
16251625
* Example: Using sha1 for a file contents
16261626
*
16271627
* ```php
16281628
* <?php
1629-
* $fileData = file_get_contents("test_file.jpg");
1629+
* $fileData = file_get_contents('test_file.jpg');
16301630
* $I->seeBinaryResponseEquals(md5($fileData));
16311631
* ```
16321632
* Example: Using sha256 hash
16331633
*
16341634
* ```php
16351635
* <?php
16361636
* $fileData = '/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k='; // very small jpeg
1637-
* $I->seeBinaryResponseEquals(hash("sha256", base64_decode($fileData)), 'sha256');
1637+
* $I->seeBinaryResponseEquals(hash('sha256', base64_decode($fileData)), 'sha256');
16381638
* ```
16391639
*
16401640
* @param string $hash the hashed data response expected
@@ -1653,7 +1653,7 @@ public function seeBinaryResponseEquals(string $hash, string $algo = 'sha1'): vo
16531653
*
16541654
* ```php
16551655
* <?php
1656-
* $I->dontSeeBinaryResponseEquals("8c90748342f19b195b9c6b4eff742ded");
1656+
* $I->dontSeeBinaryResponseEquals('8c90748342f19b195b9c6b4eff742ded');
16571657
* ```
16581658
* Opposite to `seeBinaryResponseEquals`
16591659
*

0 commit comments

Comments
 (0)