php-jwt icon indicating copy to clipboard operation
php-jwt copied to clipboard

Remove phpunit deprecation warnings for prophesize

Open gitmathias opened this issue 3 years ago • 1 comments

Seemed like it was only a factor in Firebase\JWT\CachedKeySetTest.

Could consider extending PHPUnit\Framework\TestCase to add the trait if plan on using the lib elsewhere.

gitmathias avatar Jul 04 '22 21:07 gitmathias

The problem here is that we added back support for PHP 7.1 and 7.2, and phpunit prophecy 2.0 does not support those versions of PHP.

There is a PR to add support for a polyfill (https://github.com/phpspec/prophecy-phpunit/pull/38), so comment / +1 that if you'd like to see it added.

bshaffer avatar Jul 15 '22 16:07 bshaffer