Skip to content

Commit d26e369

Browse files
authored
Merge pull request #68 from stof/patch-1
Document the PSR-16 testsuite
2 parents d57f6c4 + ae950b2 commit d26e369

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# PSR-6 Integration tests
1+
# PSR-6 and PSR-16 Integration tests
22
[![Gitter](https://badges.gitter.im/php-cache/cache.svg)](https://gitter.im/php-cache/cache?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
33
[![Latest Stable Version](https://poser.pugx.org/cache/integration-tests/v/stable)](https://packagist.org/packages/cache/integration-tests)
44
[![Total Downloads](https://poser.pugx.org/cache/integration-tests/downloads)](https://packagist.org/packages/cache/integration-tests)
55
[![Monthly Downloads](https://poser.pugx.org/cache/integration-tests/d/monthly.png)](https://packagist.org/packages/cache/integration-tests)
66
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
77

8-
This repository contains integration tests to make sure your implementation of a PSR-6 cache follows the rules by PHP-FIG.
8+
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.
99
It is a part of the PHP Cache organisation. To read about us please read the shared documentation at [www.php-cache.com](http://www.php-cache.com).
1010

1111
### Install
@@ -40,6 +40,18 @@ class TagIntegrationTest extends TaggableCachePoolTest
4040
}
4141
```
4242

43+
You can also test a PSR-16 implementation:
44+
45+
```php
46+
class CacheIntegrationTest extends SimpleCacheTest
47+
{
48+
public function createSimpleCache()
49+
{
50+
return new SimpleCache();
51+
}
52+
}
53+
```
54+
4355
### Contribute
4456

4557
Contributions are very welcome! Send a pull request or

0 commit comments

Comments
 (0)