cache/integration-tests
最新稳定版本:0.17.0
Composer 安装命令:
composer require cache/integration-tests
包简介
Integration tests for PSR-6 and PSR-16 cache implementations
README 文档
README
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 { public function createCachePool() { return new CachePool(); } }
You could also test your tag implementation:
class TagIntegrationTest extends TaggableCachePoolTest { public function createCachePool() { return new CachePool(); } }
You can also test a PSR-16 implementation:
class CacheIntegrationTest extends SimpleCacheTest { public function createSimpleCache() { return new SimpleCache(); } }
Contribute
Contributions are very welcome! Send a pull request or report any issues you find on the issue tracker.
统计信息
- 总下载量: 3.32M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 39
- 点击次数: 1
- 依赖项目数: 101
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-09