Skip to content

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

Open
tlenclos wants to merge 1 commit intophp-vcr:masterfrom
tlenclos:master
Open

Add an option when VCR is enabled globally for all tests#11
tlenclos wants to merge 1 commit intophp-vcr:masterfrom
tlenclos:master

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.

2 participants