Skip to content

kodus/mock-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kodus/mock-cache

PHP Version Build Status Code Coverage

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.