Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Added 'strict' mode which requires all requests to play in order.#276

Open
mpatnode wants to merge 3 commits intophp-vcr:masterfrom
mpatnode:master
Open

Added 'strict' mode which requires all requests to play in order.#276
mpatnode wants to merge 3 commits intophp-vcr:masterfrom
mpatnode:master

Conversation

@mpatnode
Copy link

Context

This is a refresh of #160. I removed the SOAPAction specific change since it was not material to this fix. For tests which issue multiple requests, this resulted in a huge performance benefit to not have to search the entire yml object on every request.

What has been done

Adds a strict mode which only replays requests in order and throws an exception if all requests are not played.

How to test

Add

\VCR\VCR::configure()->setMode(\VCR\VCR::MODE_STRICT);

to your code. Watch your tests run faster.

Todo

  • Add unit tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants