phpunit-testlistener-vcr
phpunit-testlistener-vcr copied to clipboard
Add an option when VCR is enabled globally for all tests
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.
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!