Skip to content

Remove symfony/phpunit-bridge from test-pack #24

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alexander-schranz
Copy link

Reference: https://github.com/symfony/demo/pull/1549/files

I think the recommended way today should be work without the phpunit bridge and directly with phpunit.

@alexander-schranz alexander-schranz changed the title Remove phpunit-bridge from test-pack Remove symfony/phpunit-bridge from test-pack Mar 19, 2025
@@ -4,15 +4,13 @@
"license": "MIT",
"description": "A pack for functional and end-to-end testing within a Symfony app",
"require": {
"phpunit/phpunit": "^9.5",
Copy link
Author

Choose a reason for hiding this comment

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

was only restricted to this version because of the bridge: #19

Copy link
Member

Choose a reason for hiding this comment

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

Is it worth setting ^11.1 here, given that is the first PHPUnit version that is fully compatible with the features provided by PHPUnitBridge's deprecation system? Or would that be redundant, as Composer will automatically pick the latest version anyways?

Copy link
Member

Choose a reason for hiding this comment

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

it should then be >=11.1 IMHO

Copy link
Member

Choose a reason for hiding this comment

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

Based on symfony/recipes#1401 (comment), we may need to set this to some >=12.x version then. That could probably mean we have to delay this to Symfony 7.4?

Copy link
Author

@alexander-schranz alexander-schranz Apr 13, 2025

Choose a reason for hiding this comment

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

How does the "pack" behave with >= does it still require it as ^11.1 else a conflict would be better.

@ucscode
Copy link

ucscode commented Mar 21, 2025

Great! Finally!
So what should we do now? Requiring the symfony/test-pack still seem to be installing and using phpunit ^9.5

@alexander-schranz
Copy link
Author

@ucscode this PR installs the version which is compatible with your used PHP version as we changed from ^9.5 to *.

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.

4 participants