Closed norkunas closed 1 year ago
I see that in TOTP time() is used many times. To ease testing PSR clock could be leveraged. Of course if there are other ways how to test the 2FA without clock mocking I'm all ears :)
time()
No response
Hi,
Yes, that's a good idea!
You can test with the branch 11.3.x. Just let me know if you have any comments.
Regards.
Nice, thank you.
Description
I see that in TOTP
time()
is used many times. To ease testing PSR clock could be leveraged. Of course if there are other ways how to test the 2FA without clock mocking I'm all ears :)Example
No response