Skip to content

Commit e07b60a

Browse files
committed
Merge pull request #5 from aaa2000/patch-1
Add record modes in configuration section
2 parents 03c119b + 84d43f4 commit e07b60a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

documentation/_posts/2013-10-20-configuration.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,16 @@ To speedup the test execution, you might want to exclude (blacklist) or specific
6060

6161
Paths you provide are substrings. For example if `vendor\guzzle` is on the whitelist, only files containing that path are scanned – think of `*vendor\guzzle*`.
6262
You certainly can use white- and blacklisting in one setup, but be aware that a PHP-VCR scans and overwrites paths only if they are in a whitelist and not on a blacklist.
63+
64+
65+
### Record modes
66+
67+
The record mode determines how requests are handled. Available modes are:
68+
* `new_episodes` always allows new HTTP requests, mode by default.
69+
* `once` will allow new HTTP requests the first time the cassette is created then throw an exception after that.
70+
* `none` will never allow new HTTP requests.
71+
72+
```
73+
\VCR\VCR::configure()
74+
->setMode('once');
75+
```

0 commit comments

Comments
 (0)