Skip to content

Commit c573042

Browse files
authored
Update README.md
Add information about using the underlying mock-client
1 parent a4bd4f2 commit c573042

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ The status code of a request is loaded from a fixture with the file extension _.
8686
This is a plain file containing only the [HTTP status code](https://httpstatuses.com/).
8787
If no _.status_ file is found, _200 OK_ will be used.
8888

89+
## Mocks (advanced)
90+
91+
This client extends [php-http/mock-client](https://github.com/php-http/mock-client), which allows you to add custom responses and exceptions that ignore fixture files. Please see the [mock-client documentation](https://github.com/php-http/mock-client#documentation) for more information.
92+
93+
N.B. A default response can not be set because this client uses that under the hood.
94+
8995
## Change log
9096

9197
Please see [CHANGELOG](https://github.com/swisnl/php-http-fixture-client/blob/master/CHANGELOG.md) for more information on what has changed recently.

0 commit comments

Comments
 (0)