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/Tokenizer(s): fix typo in directory name and rename some test files #643

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 24, 2024

Description

Tests/Tokenizer(s): fix typo in directory name

Follow up on #492

The directory name of the tests should mirror the directory (and class) name of the code under test, but contained a typo. Fixed now.

Tests/Tokenizer: rename two tests

Follow up on squizlabs/PHP_CodeSniffer#3639 and #585 which introduced these tests.

While there are no strict naming conventions for the Core\Tokenizers\Tokenizer tests, most tests in this directory now include the name of the method being covered by the test in the test class/file name.

That was not the case for these two test classes. Fixed now.

Includes moving the @covers tag from method level to class level.

Tests/Tokenizer: rename a test

Follow up on squizlabs/PHP_CodeSniffer#3066 which introduced this test.

While there are no strict naming conventions for the Core\Tokenizers\Tokenizer tests, most tests in this directory now include the name of the method being covered by the test in the test class/file name.

That was not the case for this test class. Fixed now.

Suggested changelog entry

N/A

Follow up on 492

The directory name of the tests should mirror the directory (and class) name of the code under test, but contained a typo. Fixed now.
Follow up on squizlabs/PHP_CodeSniffer 3639 and 585 which introduced these tests.

While there are no strict naming conventions for the `Core\Tokenizers\Tokenizer` tests, most tests in this directory now include the name of the method being covered by the test in the test class/file name.

That was not the case for these two test classes. Fixed now.

Includes moving the `@covers` tag from method level to class level.
Follow up on squizlabs/PHP_CodeSniffer 3066 which introduced this test.

While there are no strict naming conventions for the `Core\Tokenizers\Tokenizer` tests, most tests in this directory now include the name of the method being covered by the test in the test class/file name.

That was not the case for this test class. Fixed now.
@jrfnl jrfnl added this to the 3.11.0 milestone Oct 24, 2024
@jrfnl jrfnl merged commit 3a47cd6 into master Oct 24, 2024
52 checks passed
@jrfnl jrfnl deleted the feature/tests-fix-typo-in-dirname+test-renames branch October 24, 2024 23:59
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