@@ -60,11 +60,12 @@ protected function tearDown(): void
6060 public function testIsValid (): void
6161 {
6262 $ url = 'https://ext.payconiq.com/certificates ' ;
63+ $ cacheKey = 'payconiq_certificates_ ' . md5 ($ url );
6364 $ jwkSetJson = json_encode (['keys ' => [['kty ' => 'string ' ]]]);
6465 $ this ->cache
6566 ->expects ($ this ->once ())
6667 ->method ('get ' )
67- ->with ($ url , function (ItemInterface $ item ) use ($ url ) {
68+ ->with ($ cacheKey , function (ItemInterface $ item ) use ($ url ) {
6869 })
6970 ->willReturn ($ jwkSetJson );
7071
@@ -79,11 +80,12 @@ public function testIsValid(): void
7980 public function testIsInvalid (): void
8081 {
8182 $ url = 'https://ext.payconiq.com/certificates ' ;
83+ $ cacheKey = 'payconiq_certificates_ ' . md5 ($ url );
8284 $ jwkSetJson = json_encode (['keys ' => [['kty ' => 'string ' ]]]);
8385 $ this ->cache
8486 ->expects ($ this ->once ())
8587 ->method ('get ' )
86- ->with ($ url , function (ItemInterface $ item ) use ($ url ) {
88+ ->with ($ cacheKey , function (ItemInterface $ item ) use ($ url ) {
8789 })
8890 ->willReturn ($ jwkSetJson );
8991
@@ -99,11 +101,12 @@ public function testIsInvalid(): void
99101 public function testLoadAndVerifyJWS (): void
100102 {
101103 $ url = 'https://ext.payconiq.com/certificates ' ;
104+ $ cacheKey = 'payconiq_certificates_ ' . md5 ($ url );
102105 $ jwkSetJson = json_encode (['keys ' => [['kty ' => 'string ' ]]]);
103106 $ this ->cache
104107 ->expects ($ this ->once ())
105108 ->method ('get ' )
106- ->with ($ url , function (ItemInterface $ item ) use ($ url ) {
109+ ->with ($ cacheKey , function (ItemInterface $ item ) use ($ url ) {
107110 })
108111 ->willReturn ($ jwkSetJson );
109112
@@ -122,11 +125,12 @@ public function testLoadAndVerifyJWS(): void
122125 public function testLoadAndVerifyJWSItShouldThrow (): void
123126 {
124127 $ url = 'https://ext.payconiq.com/certificates ' ;
128+ $ cacheKey = 'payconiq_certificates_ ' . md5 ($ url );
125129 $ jwkSetJson = json_encode (['keys ' => [['kty ' => 'string ' ]]]);
126130 $ this ->cache
127131 ->expects ($ this ->once ())
128132 ->method ('get ' )
129- ->with ($ url , function (ItemInterface $ item ) use ($ url ) {
133+ ->with ($ cacheKey , function (ItemInterface $ item ) use ($ url ) {
130134 })
131135 ->willReturn ($ jwkSetJson );
132136
0 commit comments