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: reorganize #492

Merged
merged 5 commits into from
May 15, 2024
Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 15, 2024

Description

Tests/Tokenizer: move tests

Move the tests directly related to the Tokenizer\PHP class into a PHP subdirectory.
Move the tests directly related to the Tokenizer\Tokenizer class into a Tokenizer subdirectory.

As there are five (soon three) Tokenizer classes, having the tests for each class in their own subdirectory makes it more straight forward to see what code is covered by tests.

Tests/Tokenizer/ArrayKeywordTest: split the test class

Tests/Tokenizer/DefaultKeywordTest: split the test class

Tests/Tokenizer/DNFTypesTest: split the test class

Tests/Tokenizer/EnumCaseTest: split the test class

... into two test classes, one targetting the Tokenizer\PHP class, one targetting the Tokenizer\Tokenizer class.

While this does mean there is now some duplication between these test classes, I don't think that's problematic.

It also allows for these tests to diverge based on the specific test needs for each of the classes under test.

Suggested changelog entry

N/A

jrfnl added 5 commits May 15, 2024 10:37
Move the tests directly related to the `Tokenizer\PHP` class into a `PHP` subdirectory.
Move the tests directly related to the `Tokenizer\Tokenizer` class into a `Tokenizer` subdirectory.

As there are five (soon three) Tokenizer classes, having the tests for each class in their own subdirectory makes it more straight forward to see what code is covered by tests.
... into two test classes, one targetting the `Tokenizer\PHP` class, one targetting the `Tokenizer\Tokenizer` class.

While this does mean there is now some duplication between these test classes, I don't think that's problematic.

It also allows for these tests to diverge based on the specific test needs for each of these classes.
... into two test classes, one targetting the `Tokenizer\PHP` class, one targetting the `Tokenizer\Tokenizer` class.

While this does mean there is now some duplication between these test classes, I don't think that's problematic.

It also allows for these tests to diverge based on the specific test needs for each of the classes under test.
... into two test classes, one targetting the `Tokenizer\PHP` class, one targetting the `Tokenizer\Tokenizer` class.

While this does mean there is now some duplication between these test classes, I don't think that's problematic.

It also allows for these tests to diverge based on the specific test needs for each of the classes under test.
... into two test classes, one targetting the `Tokenizer\PHP` class, one targetting the `Tokenizer\Tokenizer` class.

While this does mean there is now some duplication between these test classes, I don't think that's problematic.

It also allows for these tests to diverge based on the specific test needs for each of the classes under test.
@jrfnl jrfnl added this to the 3.10.0 milestone May 15, 2024
@jrfnl jrfnl changed the title Feature/tests tokenizer reorganize Tests/Tokenizer: reorganize May 15, 2024
@jrfnl jrfnl merged commit 746ce57 into master May 15, 2024
50 checks passed
@jrfnl jrfnl deleted the feature/tests-tokenizer-reorganize branch May 15, 2024 10:47
jrfnl added a commit that referenced this pull request May 16, 2024
Applies the same changes as previously made via PRs #314 and #492 in the 3.x branch, to this test file in the 4.x branch.
jrfnl added a commit that referenced this pull request May 16, 2024
Applies the same changes as previously made via PRs #314 and #492 in the 3.x branch, to this test file in the 4.x branch.
jrfnl added a commit that referenced this pull request May 16, 2024
Applies the same changes as previously made via PRs #314 and #492 in the 3.x branch, to this test file in the 4.x branch.
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