-
Notifications
You must be signed in to change notification settings - Fork 84
Fix CI Build and update PHPUnit #545
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
Fix CI Build and update PHPUnit #545
Conversation
@dbu any idea about the failing test? |
Seems like a regression in: https://github.com/symfony/symfony/pull/36243/files#r465083756 |
2a74f74
to
2cbf9b4
Compare
|
||
class ContextInvalidationLogoutHandlerTest extends WebTestCase | ||
{ | ||
use MockeryPHPUnitIntegration; | ||
|
||
public function testLogout() | ||
{ | ||
if (class_exists(LogoutEvent::class)) { | ||
// @see https://github.com/symfony/symfony/pull/36243/files#r465083756 | ||
$this->markTestSkipped('This test does not work with Symfony 5.1.'); |
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.
lets wait until tomorrow if we get a reaction on for https://github.com/symfony/symfony/pull/36243/files#r465083756 and then either remove this again, or also add a check to the actual implementation to make people realize the handler does not work with symfony 5.1
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.
Are you sure you want to throw an exception when the ContextInvalidationLogoutHandler
class is used in Symfony 5.1? I'm little bit afraid doing that 🙈
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 think its the correct thing to do. its not something we can silently work around, it simply does not work at all so devs need to be made aware if they did not check the changelog. better a clear error than a security issue that is silently sitting there.
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.
Done in 853eaa0
8280dad
to
f870761
Compare
f870761
to
853eaa0
Compare
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.
some wording changes for the exception, otherwise i am happy with it
Co-authored-by: David Buchmann <[email protected]>
thanks a lot! |
Locally I run into the following problem:
This seems to be fixed by using:
Which seems to be set in the .travis.yml also. I think I would remove it there so it works locally also.
But then I run into the following error:
So I decided to update to PHPUnit 8. Which seems to fix this error.