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

Add an option when VCR is enabled globally for all tests #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tlenclos
Copy link

@tlenclos tlenclos commented Mar 9, 2016

I was facing an issue when some code is loaded in the setUp function in my tests and the VCR was activated too late.

The solution I found is to activate VCR in my phpunit bootstrap file and use this option to prevent turning on and off the VCR on each tests.

@renatomefi
Copy link
Member

Hello @tlenclos
First of all sorry for the delay, can you explain with more detail your issue?
Because you can enable it on the test bootstrap and if the turnOn is called more than one time it's not a problem.

Thanks for your PR!

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

Successfully merging this pull request may close these issues.

None yet

2 participants