Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/3.1' into 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Apr 23, 2020
2 parents 4d4541c + cc908d5 commit b688238
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ $bodyRequestDef->match($requestBody);
PHP Swagger has the class `MockRequester` with exact the same functionalities of `ApiRequester` class. The only
difference is the `MockRequester` don't need to request to a real endpoint.

This is particularly usefull if you want to check if your OpenApi specification is returning the expected values.
This is used to validate request and response against your OpenAPI spec without running any server code.

```php
<?php
Expand All @@ -229,7 +229,7 @@ class MyTest extends ApiTestCase
->withMethod('GET')
->withPath("/pet/1");

$this->assertRequest($request); // That should be "True"
$this->assertRequest($request); // That should be "True" based on the specification
}
}
```
Expand All @@ -246,8 +246,9 @@ Github issue.

# References

This project uses the [byjg/webrequest](https://github.com/byjg/webrequest) component. It implements the PSR-7 specification,
and a HttpClient / MockClient to do the requests. Check it out to get more information.
This project uses the [byjg/webrequest](https://github.com/byjg/webrequest) component.
It implements the PSR-7 specification, and a HttpClient / MockClient to do the requests.
Check it out to get more information.

---
OpenSource ByJG: [https://opensource.byjg.com/](https://opensource.byjg.com/)

0 comments on commit b688238

Please sign in to comment.