I am using Zend_Cache_Manager in one of my controllers to detect and drop (via 304 response) multiple request from the same source within a minute.
The problem is that with caching turned on, my controller unit tests are failing.
Should I change the backend to Zend_Cache_Backend_Blackhole or Zend_Cache_Backend_Test, or should I clear the cache in the tests setUp()? Are there other appropriate options?
Use your configuration to disable cache manager for the test environment, eg
Make sure your env is set to
testfor testing