This repository contains integration tests to make sure your implementation of a PSR-6 cache follows the rules by PHP-FIG. It is a part of the PHP Cache organisation. To read about us please read the shared documentation at www.php-cache.com.
composer require --dev cache/integration-tests:dev-master
Create a test that looks like this:
class PoolIntegrationTest extends CachePoolTest
{
public function createCachePool()
{
return new CachePool();
}
}
You could also test your tag implementation:
class TagIntegrationTest extends TaggableCachePoolTest
{
public function createCachePool()
{
return new CachePool();
}
}
Contributions are very welcome! Send a pull request or report any issues you find on the issue tracker.