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

Merged
merged 1 commit into from
May 20, 2025

Conversation

alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented Mar 19, 2025

Fix #21

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
Contributor 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
Contributor 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.

Copy link
Member

Choose a reason for hiding this comment

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

shouldn't we move this constraint to the conflict section?
conflict with phpunit < 11.1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

@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
Contributor Author

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

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

@alexander-schranz can you please squash after adding the conflict line?

@nicolas-grekas nicolas-grekas merged commit 88285bd into symfony:main May 20, 2025
@alexander-schranz alexander-schranz deleted the patch-1 branch May 20, 2025 15:09
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.

Should the restriction on phpunit version be lifted?
4 participants