Skip to content
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

refactor to phpunit 10 event system #565

Merged
merged 1 commit into from Mar 27, 2024
Merged

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Mar 25, 2024

fix #561

@dbu dbu force-pushed the refactor-to-phpunit-10-eventsystem branch 5 times, most recently from bb5b6dd to 12c3c2e Compare March 26, 2024 07:38
return;
}

if (null !== $this->pid || !in_array('webserver', $suite->getGroups())) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we used to check the groups of the test suite, but that seems not available with phpunit 10. is there a way to know which groups a test suite includes?

@dbu dbu force-pushed the refactor-to-phpunit-10-eventsystem branch from 12c3c2e to 7c4f5e7 Compare March 26, 2024 16:44
@dbu dbu force-pushed the refactor-to-phpunit-10-eventsystem branch from 7c4f5e7 to d06ce3f Compare March 26, 2024 16:46
@dbu
Copy link
Contributor Author

dbu commented Mar 27, 2024

if sebastianbergmann/phpunit#5769 gets solved, we can improve the setup.

meanwhile i will merge, the overhead of starting php -S seems to be small.

@dbu dbu merged commit 4b4751b into 3.x Mar 27, 2024
15 checks passed
@dbu dbu deleted the refactor-to-phpunit-10-eventsystem branch March 27, 2024 11:10
},
"conflict": {
"toflar/psr6-symfony-http-cache-store": "<2.2.1",
"phpunit/phpunit": "<8"
"phpunit/phpunit": "<10"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is strange that I can not use the 3.x package when my PHPUnit version is 9.6 which is still a widely. used version of PHPUnit.

I would like to avoid this conflict think most of the people will not require a test besed on the WebServerSubscriber and so this should only be a softrequirement.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you are right.

fixed in 24a47d5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

replace WebServerListener with phpunit extensions
2 participants