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

Add `JWT::resetTime()` && `JWT::maxLeeway()` to simplify unit tests

Open cosmastech opened this issue 9 months ago • 1 comments

When unit testing, we have fixtures for valid JWTs. In tests, we often have to setUp/tearDown where we re/set these values. This is designed to make that easier.

cosmastech avatar Feb 22 '25 14:02 cosmastech

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Feb 22 '25 14:02 google-cla[bot]

Thanks for your contribution!

I don't generally like exposing functions like this which are 1) testing only and 2) already possible with roughly the same amount of code.

bshaffer avatar Apr 09 '25 18:04 bshaffer