-
-
Notifications
You must be signed in to change notification settings - Fork 497
Make use of the local phpunit.xsd #652
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
Conversation
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.
Pull request passes validation.
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.
It won't work for symfony/simple-phpunit
because phpunit is not required in composer.json
and therefore not installed in the vendor
dir.
The bin/phpunit file states that it's installed in bin/.phpunit/phpunit-{version}/
, therefore the version should be changed in the bridge's xml files.
6d901c3
to
3132df9
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.
Pull request passes validation.
This PR was merged into the 3.4 branch. Discussion ---------- Copy phpunit.xsd to a predictable path | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | yes-ish | Deprecations? | no | Tickets | symfony/recipes#652 (comment) | License | MIT | Doc PR | - In symfony/recipes#652 I would like to make Flex create the `phpunit.xml.dist` file with a local URI for the `phpunit.xsd`. This is doable when using `phpunit/phpunit` standalone because the path to the XSD file is known. This PR aims to allow doing this when using the PHPUnit Bridge, which installs PHPUnit in a path that might change. Is is simple `@copy()` call ok? Should I add some error handling? Commits ------- 233dcb4 Copy phpunit.xsd to a predictable path
This is so good. Thanks for the idea. |
Using the local
phpunit.xsd
file guarantees we use the exact version that is installed. It also improves DX with PhpStorm as it becomes able to validatephpunit.xml
without manually registering XSD file's URI.