I'm looking at a class in CRM_Utils_Cache here specificly and it looks exactly like what I need to write some unit tests against my extension.
The issue is that the $cache
array is private
rather than protected
...
This means I can't extend this class into a test mock that allows my unit tests to manipulate and observe the cache state.
For this reason I'm wonder if there is a downside to changing this (and maybe other) properties to protected
?
_cache
. Are you not able to use them ?