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

Verify that sub namespaces in test match the expected location #167

Merged
merged 1 commit into from
Dec 30, 2021

Commits on Dec 29, 2021

  1. Verify that sub namespaces in test match the expected location

    Added one more check to the unit tests naming sniff that now
    verify, for testcase clases, that they are in the expected
    subdirectory, following the general namespace rules for stuff
    under the "classes" directory.
    
    Note that we still aren't checking the correctness under "classes"
    and, once that's implemented, surely some code here will be moved
    to the general namespaces sniff (a note about that has been added
    to code).
    
    Also, note that we aren't still checking for level2 correctness, that
    must be a valid API or "local", whenever that's possible it will be
    checked.
    
    So, this only validates that the location (sub-directories) of the
    file matches the sub-namespaces of the class.
    
    Covered with tests.
    stronk7 committed Dec 29, 2021
    Configuration menu
    Copy the full SHA
    7f87301 View commit details
    Browse the repository at this point in the history