phpunit-testlistener-vcr icon indicating copy to clipboard operation
phpunit-testlistener-vcr copied to clipboard

Add an option when VCR is enabled globally for all tests

Open tlenclos opened this issue 8 years ago • 1 comments

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.

tlenclos avatar Mar 09 '16 17:03 tlenclos

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!

renatomefi avatar Dec 23 '16 12:12 renatomefi