Enable result cache by default #3244
One thing I noticed that if I run PHPUnit's own test suite with
We probably have to disable the cache for all test suites executed by PHPUnit's own test suite.
@sebastianbergmann Yes, unfortunately that is a known issue with (some of?) the PHPT tests. I have never looked that up in detail, however I am aware of it. The saving grace for PHPUnit's own test suite is that it overwrites the other caches at the end.
I think at some point there was a development version that looked at the
In newer tests I actively work around the issue by explicitly copying the cache to a temporary file somewhere else and deleting it afterwards. This works really well; example:
I am not sure what the best solution is that works in all cases, honestly. Wish I had a better answer for you already :-(