Skip to content

[CLEANUP] Use a per-test subject for DocumentTest #963

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
Feb 20, 2025
Merged

Conversation

oliverklee
Copy link
Collaborator

No description provided.

@coveralls
Copy link

coveralls commented Feb 20, 2025

Coverage Status

coverage: 51.654%. remained the same
when pulling 5457d42 on cleanup/tests-setup
into 3a05e1f on main.

Copy link
Collaborator

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

IMO it does indeed make it much clearer to see what's going on in each test :)

And there's barely any more code involved by replacing $this->subject with new Document().

@JakeQZ JakeQZ merged commit d7d9128 into main Feb 20, 2025
21 checks passed
@JakeQZ JakeQZ deleted the cleanup/tests-setup branch February 20, 2025 10:18
oliverklee added a commit that referenced this pull request Feb 20, 2025
oliverklee added a commit that referenced this pull request Feb 20, 2025
- use a per-test subject similar to #963
- add a missing `@covers` annotation for the parent class
- add tests for the line number

Part of #757
JakeQZ pushed a commit that referenced this pull request Feb 20, 2025
- use a per-test subject similar to #963
- add a missing `@covers` annotation for the parent class
- add tests for the line number

Part of #757
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