-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add support for lcobucci/jwt:v5 #560
Conversation
@@ -124,6 +124,7 @@ public function testInjectsSessionInResponseCookies(callable $middlewareFactory) | |||
$token = $this->getCookie($response)->getValue(); | |||
|
|||
self::assertIsString($token); | |||
self::assertTrue($token !== ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have loved to write this as self::assertNotSame('', $token);
but unfortunately that specific assertion lacks the @psalm-assert
spec 😢 https://github.com/sebastianbergmann/phpunit/blob/e733b040fd42101e6805ead23221db01ca39e259/src/Framework/Assert.php#L1387
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh, at least it's a test only 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Slamdunk!
@@ -124,6 +124,7 @@ public function testInjectsSessionInResponseCookies(callable $middlewareFactory) | |||
$token = $this->getCookie($response)->getValue(); | |||
|
|||
self::assertIsString($token); | |||
self::assertTrue($token !== ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh, at least it's a test only 👍
No description provided.