File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 - name : Execute tests
5858 run : composer test
5959
60- coverage :
61- name : Code Coverage
62- runs-on : ubuntu-latest
63-
64- steps :
65- - name : Checkout code
66- uses : actions/checkout@v4
67-
68- - name : Setup PHP
69- uses : shivammathur/setup-php@v2
70- with :
71- php-version : 7.4
72- tools : composer:v2
73- coverage : xdebug
74-
75- - name : Install dependencies
76- run : |
77- composer require "friends-of-phpspec/phpspec-code-coverage" --no-interaction --no-update
78- composer update --prefer-dist --no-interaction --no-progress
79-
80- - name : Execute tests
81- run : composer test-ci
82-
83- - name : Upload coverage
84- run : |
85- wget https://scrutinizer-ci.com/ocular.phar
86- php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml
Original file line number Diff line number Diff line change 22
33# Version 2
44
5- ## 2.1.0 - TBD
5+ ## 2.1.0 - 2026-05-12
66
77### Added
88
Original file line number Diff line number Diff line change @@ -23,14 +23,6 @@ composer require php-http/cache-plugin
2323
2424Please see the [ official documentation] ( http://docs.php-http.org/en/latest/plugins/cache.html ) .
2525
26- To only cache ETag-backed responses and always revalidate cached bodies with ` If-None-Match ` , use ` EtagCachePlugin ` :
27-
28- ``` php
29- $plugin = EtagCachePlugin::clientCache($pool, $streamFactory);
30- ```
31-
32- Responses without an ` ETag ` header are not cached. Cached responses are only returned after the origin replies with ` 304 Not Modified ` .
33-
3426
3527## Testing
3628
You can’t perform that action at this time.
0 commit comments