Skip to content

Repository files navigation

PSR-6 and PSR-16 Integration tests

GitterLatest Stable VersionTotal DownloadsMonthly DownloadsSoftware License

This repository contains integration tests to make sure your implementation of a PSR-6 and/or PSR-16 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.

Install

composer require --dev cache/integration-tests:dev-master

Use

Create a test that looks like this:

class PoolIntegrationTest extends CachePoolTest
{
publicfunctioncreateCachePool()
{
returnnewCachePool();
}
}

You could also test your tag implementation:

class TagIntegrationTest extends TaggableCachePoolTest
{
publicfunctioncreateCachePool()
{
returnnewCachePool();
}
}

You can also test a PSR-16 implementation:

class CacheIntegrationTest extends SimpleCacheTest
{
publicfunctioncreateSimpleCache()
{
returnnewSimpleCache();
}
}

Contribute

Contributions are very welcome! Send a pull request or report any issues you find on the issue tracker.

About

Integration tests for your PSR-6 cache implementation

Resources

Stars

41 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages