Skip to content
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

Tests: rename AssertAttributeSame trait to AssertPropertySame #589

Merged
merged 1 commit into from Apr 29, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 29, 2024

The name was originally based on the name of the assertion available in PHPUnit, however, what with the introduction of the language construct named attributes in PHP 8.0, the name is now not very helpful/clear.

What this trait really does, is check the value of an object property, so let's make that more obvious in the naming.

Note: as this is an internal test-only file, this rename is not a breaking change.

The name was originally based on the name of the assertion available in PHPUnit, however, what with the introduction of the language construct named attributes in PHP 8.0, the name is now not very helpful/clear.

What this trait really does, is check the value of an object property, so let's make that more obvious in the naming.

Note: as this is an internal test-only file, this rename is not a breaking change.
@jrfnl jrfnl added this to the 1.0.x Next milestone Apr 29, 2024
@jrfnl jrfnl merged commit 08b7d23 into develop Apr 29, 2024
54 checks passed
@jrfnl jrfnl deleted the feature/tests-rename-assertattributetrait branch April 29, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant