kodus / mock-cache
PSR-16 cache-implementation for integration tests
Installs: 39 904
Dependents: 5
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >= 8.0
- psr/simple-cache: ^2||^3
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-08 07:24:37 UTC
README
This library provides a PSR-16
cache-implementation for integration testing, backed by a simple array
.
It simulates a simple system clock and expiration - in your tests, calling e.g. $cache->skipTime(10)
will
travel forward in time 10 seconds, but time will otherwise stand still, so you don't need to write integration
tests that have to sleep()
to test for side-effects from cache-expiration.