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

Commits on May 15, 2024

  1. 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.
    jrfnl committed May 15, 2024
    Configuration menu
    Copy the full SHA
    1345b18 View commit details
    Browse the repository at this point in the history
  2. Tests/Tokenizer/ArrayKeywordTest: 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 these classes.
    jrfnl committed May 15, 2024
    Configuration menu
    Copy the full SHA
    83fad84 View commit details
    Browse the repository at this point in the history
  3. Tests/Tokenizer/DefaultKeywordTest: 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.
    jrfnl committed May 15, 2024
    Configuration menu
    Copy the full SHA
    48dfbc9 View commit details
    Browse the repository at this point in the history
  4. Tests/Tokenizer/DNFTypesTest: 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.
    jrfnl committed May 15, 2024
    Configuration menu
    Copy the full SHA
    613e1c9 View commit details
    Browse the repository at this point in the history
  5. 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.
    jrfnl committed May 15, 2024
    Configuration menu
    Copy the full SHA
    5ed168c View commit details
    Browse the repository at this point in the history