Skip to content

Commit c83f46c

Browse files
committed
Remove phpunit deprecation warnings for prophesize
1 parent d28e6df commit c83f46c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"require-dev": {
3434
"guzzlehttp/guzzle": "^6.5||^7.4",
35-
"phpspec/prophecy-phpunit": "^1.1",
35+
"phpspec/prophecy-phpunit": "^2.0",
3636
"phpunit/phpunit": "^7.5||^9.5",
3737
"psr/cache": "^1.0||^2.0",
3838
"psr/http-client": "^1.0",

tests/CachedKeySetTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use OutOfBoundsException;
77
use PHPUnit\Framework\TestCase;
88
use Prophecy\Argument;
9+
use Prophecy\PhpUnit\ProphecyTrait;
910
use Psr\Cache\CacheItemInterface;
1011
use Psr\Cache\CacheItemPoolInterface;
1112
use Psr\Http\Client\ClientInterface;
@@ -14,6 +15,8 @@
1415

1516
class CachedKeySetTest extends TestCase
1617
{
18+
use ProphecyTrait;
19+
1720
private $testJwksUri = 'https://jwk.uri';
1821
private $testJwksUriKey = 'jwkshttpsjwk.uri';
1922
private $testJwks1 = '{"keys": [{"kid":"foo","kty":"RSA","alg":"foo","n":"","e":""}]}';

0 commit comments

Comments
 (0)