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

Change $this to self in generate-tests.php for method assertStringEqualsFile in TaskTestCase #304

Conversation

TheoD02
Copy link
Contributor

@TheoD02 TheoD02 commented Mar 1, 2024

Description

In the tests, $this->assertStringEqualsFile was replaced with self::assertStringEqualsFile. The change was necessary because the method assertStringEqualsFile is static. This ensures a more proper and standard use of static method invocation in PHP.

@TheoD02 TheoD02 force-pushed the fix/change_this_to_self_call_for_task_test_case branch from 347583e to 2091ded Compare March 1, 2024 21:24
Copy link
Member

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

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

I'm against this change. It's really a matter of personal test. And I prefer to stick to the same way of doing it as in the phpunit documentation

@TheoD02 TheoD02 closed this Mar 4, 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.

None yet

2 participants