Skip to content

Commit 2c177d9

Browse files
committed
Add strict mode section to README
1 parent 3455cc5 commit 2c177d9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ Please see the following table for some examples.
5555
| | | /path/to/fixtures/example.com/api/comments.get.mock |
5656
| | | /path/to/fixtures/example.com/api/comments.mock |
5757

58+
### Strict mode
59+
The `ReponseBuilder` can be set to strict mode using `setStrictMode(true)`.
60+
When in strict mode, only the first possible fixture path will be used.
61+
This means that both the method and query params must be present in the fixture file name and it does not fall back to other fixture files.
62+
5863
### Helper
5964
<UrlHelper>Please see <a href="https://swisnl.github.io/php-http-fixture-client/#helper">https://swisnl.github.io/php-http-fixture-client/#helper</a> for the URL helper.</UrlHelper>
6065

0 commit comments

Comments
 (0)