Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 4, 2025

Description

Should work just the same and just as well.

Historical context: looks like the use of DummyFile is a left over from a time long, long ago, when the "test case code" was included in the same file as the unit test class. This was changed in 2016 for PHPCS 2.x via PR squizlabs/PHP_CodeSniffer#1193, but then the merge up into PHPCS 3.x (which introduced DummyFile) did not change the object instantiation.

Suggested changelog entry

N/A

…ad of DummyFile

Should work just the same and just as well.

Historical context: looks like the use of `DummyFile` is a left over from a time long, long ago, when the "test case code" was included in the same file as the unit test class. This was changed in 2016 for PHPCS 2.x via PR squizlabs/PHP_CodeSniffer 1193, but then the merge up into PHPCS 3.x (which introduced `DummyFile`) did not change the object instantiation.
@jrfnl jrfnl added this to the 4.0.0 milestone Sep 4, 2025
@jrfnl jrfnl merged commit 9ead089 into 4.x Sep 4, 2025
69 checks passed
@jrfnl jrfnl deleted the phpcs-4.0/feature/abstract-testcases-use-localfile-not-dummyfile branch September 4, 2025 15:21
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.

1 participant