File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
test/Github/Tests/Functional Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11
11
strategy :
12
12
fail-fast : false
13
13
matrix :
14
- php-versions : ['7.1 ', '7.2 ', '7.3 ', '7.4 ']
14
+ php-versions : ['7.2 ', '7.3 ', '7.4 ', '8.0 ']
15
15
16
16
steps :
17
17
- uses : actions/checkout@v2
48
48
49
49
- uses : shivammathur/setup-php@v2
50
50
with :
51
- php-version : 7.1
51
+ php-version : 7.2
52
52
coverage : none
53
53
54
54
- name : Install Composer Dependencies
Original file line number Diff line number Diff line change 17
17
}
18
18
],
19
19
"require" : {
20
- "php" : " ^7.1 " ,
20
+ "php" : " ^7.2|^8.0 " ,
21
21
"php-http/client-common" : " ^2.3" ,
22
22
"php-http/cache-plugin" : " ^1.7" ,
23
23
"php-http/discovery" : " ^1.11" ,
29
29
"psr/http-message" : " ^1.0"
30
30
},
31
31
"require-dev" : {
32
- "cache/array-adapter " : " ^1.0 .1" ,
32
+ "symfony/cache " : " ^5 .1" ,
33
33
"guzzlehttp/psr7" : " ^1.5.2" ,
34
34
"http-interop/http-factory-guzzle" : " ^1.0" ,
35
- "php-http/guzzle6-adapter " : " ^2 .0.1" ,
35
+ "guzzlehttp/guzzle " : " ^7 .0.1" ,
36
36
"php-http/mock-client" : " ^1.4" ,
37
37
"phpstan/phpstan" : " ^0.12.32" ,
38
38
"phpstan/extension-installer" : " ^1.0.4" ,
39
39
"phpstan/phpstan-deprecation-rules" : " ^0.12.4" ,
40
- "phpunit/phpunit" : " ^7.5.15 || ^ 8.4 || ^9.0"
40
+ "phpunit/phpunit" : " ^8.4 || ^9.0"
41
41
},
42
42
"autoload" : {
43
43
"psr-4" : { "Github\\ " : " lib/Github/" }
Original file line number Diff line number Diff line change 2
2
3
3
namespace Github \Tests \Functional ;
4
4
5
- use Cache \Adapter \PHPArray \ArrayCachePool ;
6
5
use Github \Client ;
7
6
use GuzzleHttp \Psr7 \Response ;
7
+ use Symfony \Component \Cache \Adapter \ArrayAdapter ;
8
8
9
9
/**
10
10
* @group functional
@@ -23,7 +23,7 @@ public function shouldServeCachedResponse()
23
23
$ mockClient ->addResponse ($ this ->getCurrentUserResponse ('octocat ' ));
24
24
25
25
$ github = Client::createWithHttpClient ($ mockClient );
26
- $ github ->addCache (new ArrayCachePool (), ['default_ttl ' =>600 ]);
26
+ $ github ->addCache (new ArrayAdapter (), ['default_ttl ' =>600 ]);
27
27
28
28
$ github ->authenticate ('fake_token_aaa ' , Client::AUTH_ACCESS_TOKEN );
29
29
$ userA = $ github ->currentUser ()->show ();
@@ -43,7 +43,7 @@ public function shouldVaryOnAuthorization()
43
43
$ mockClient ->addResponse ($ this ->getCurrentUserResponse ('octocat ' ));
44
44
45
45
$ github = Client::createWithHttpClient ($ mockClient );
46
- $ github ->addCache (new ArrayCachePool (), ['default_ttl ' =>600 ]);
46
+ $ github ->addCache (new ArrayAdapter (), ['default_ttl ' =>600 ]);
47
47
48
48
$ github ->authenticate ('fake_token_aaa ' , Client::AUTH_ACCESS_TOKEN );
49
49
$ userA = $ github ->currentUser ()->show ();
You can’t perform that action at this time.
0 commit comments