-
Notifications
You must be signed in to change notification settings - Fork 49
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
PhpSession messing up with tests? #12
Comments
Thank you. I am having the same issue with Laravel 5.3. Your temporary solution helps, at least the tests can run as usual. |
Could you please tell me what happens if you do a
? |
Hi @antonioribeiro, just run your code and get a return value |
Sorry, I think we shoul also test:
|
Oops it seems I messed up with the tracker in both dev and production environment so I reverted the code to a previous commit. Will update you when I get back to the same state again.. |
Did you try to run it (locally) with |
Hi @antonioribeiro, I'm having the same issue. I have a fresh 5.6 Laravel installation with your tracker package and the default example tests[1] and I get the same error when I run phpunit. I've include dd(session_status()) inside the if() and the return is 1 in the browser and inside the phpunit test. I hope it could help :) [1]
|
After upgrading to Laravel 5.4 running phpunit outputs the error below.
I've solved it temporarily by adding @ before session_start() in src/PhpSession.php, but I'm not quite sure what's going on and whether the issue comes from this package or from my setup.
The text was updated successfully, but these errors were encountered: