Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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.

None yet

2 participants