-
Notifications
You must be signed in to change notification settings - Fork 102
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
InvalidAbstractName should not throw error on *TestCase class #121
Comments
as stated over here as well, personally i don't think referencing to symfony's test case classes or code in general is a valid reason for an adapted version of what is stated in their coding standard. you can easily exclude your test case files if you don't agree with the coding standard if it comes to unit tests. disabling the rule by default would "break" this coding standard to those who actually want to apply the same rules to both their regular code and their test cases... |
From Symfony coding standard:
I'd like to enforce that rule in our own code with this standard, but it requires abstract test cases to have the abstract prefix as well. |
I'm not talking about disabling the rule but make an exception on |
Thanks for this thread - IMO the coding standard shouldn't provide the exclusion, which goes against what the standard sets out (ie. an abstract class name needs to be not prefixed with "Abstract"). With that in mind, I'd push that back to your CI setup to have Hope this helps! |
Example:
But it's not true. See Symfony code source.
*TestCase
classes are not prefixed byAbstract
.Workaround:
The text was updated successfully, but these errors were encountered: