Skip to content

[TASK] Configure PHPUnit to be more strict #743

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 4 commits into from
Oct 25, 2024
Merged

Conversation

oliverklee
Copy link
Contributor

@oliverklee oliverklee commented Oct 25, 2024

This change brings the PHPUnit configuration in line with what we have at Emogrifier (except for the difference in the XSD version number).

@oliverklee oliverklee self-assigned this Oct 25, 2024
@oliverklee oliverklee marked this pull request as draft October 25, 2024 18:16
@coveralls
Copy link

coveralls commented Oct 25, 2024

Coverage Status

coverage: 38.622%. remained the same
when pulling 9789866 on task/phpunit-configuration
into a5a1f1a on main.

oliverklee added a commit that referenced this pull request Oct 25, 2024
This is the v8.x backport of #743.
@oliverklee oliverklee marked this pull request as ready for review October 25, 2024 18:18
@oliverklee oliverklee requested a review from JakeQZ October 25, 2024 18:19
oliverklee added a commit that referenced this pull request Oct 25, 2024
This is the v8.x backport of #743.
@oliverklee oliverklee force-pushed the task/phpunit-configuration branch from 77f9b0f to 3a95a1c Compare October 25, 2024 18:21
oliverklee added a commit that referenced this pull request Oct 25, 2024
This is the v8.x backport of #743.
Copy link
Contributor

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

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

Changes seem mostly fine, but could we please keep the original indentation style. This would make the diff cleaner, and avoid attributes being idented by 9 spaces.

Also, do we need bootstrap="vendor/autoload.php". It seems to work without it, and must presumably be using that by default, otherwise the classes to be tested wouldn't load. Explicitly stating it creates a hard-coded value that makes assumptions about the behaviour of a third-party package (Composer itself). If PHPUnit effectively deals with the location of Composer's autoload file, then we should just allow it to do so.

oliverklee added a commit that referenced this pull request Oct 25, 2024
This is the v8.x backport of #743.
@oliverklee oliverklee requested a review from JakeQZ October 25, 2024 22:03
@oliverklee
Copy link
Contributor Author

Done and repushed.

Copy link
Contributor

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

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

I see clearly now we already had cacheResult="false" in this project :)

@JakeQZ JakeQZ merged commit 35c0389 into main Oct 25, 2024
20 checks passed
@JakeQZ JakeQZ deleted the task/phpunit-configuration branch October 25, 2024 23:09
oliverklee added a commit that referenced this pull request Oct 26, 2024
This is the v8.x backport of #743.
oliverklee added a commit that referenced this pull request Oct 26, 2024
This is the v8.x backport of #743.
JakeQZ pushed a commit that referenced this pull request Oct 26, 2024
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.

3 participants