-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only when testing ReflectionException: Class Tymon\JWTAuth\Middleware\GetUserFromToken #967
Comments
Getting the same error when using Laravel 5.4
|
Fixed by changing:
to
|
I see that in source code :) The strange thing is that only happened the error when i started the system by phpunit |
I had the same issue, and changing the name worked :) but for me it was also working fine before the change from outside phpunit. Does this mean that the library is loaded twice (with the old name and the new name) for calls outside phpunit? This worries me a little. Can someone help us find out why it was working from outside phpunit with the old name? BTW. With the new name it works fine form curl and from phpunit so this is quite weird... |
@gmann1982 |
this worked for me
|
laravel 5.6+ & jwt-auth 1.0+
|
This worked for me
|
When i run vendor/bin/phpunit show the error
But the application works like a charm in develop mode.
I test with class approach too
I was using alpha.2 (another Provider config) and now i test with this config using beta.1. Both work in development but in test throgth vendor/bin/phpunit no.
Need some config to work in test?
The text was updated successfully, but these errors were encountered: