What about fixing PHPUnit setup() and teardown() methods to be protected when they are public? That's a common mistake and would be nice to have a fixed for that.
Would be nice to fixer.
How would the detection if we are fixing a utest class look like (as both methods might be used in other classes as well);
test; or\PHPUnit_Framework_TestCase; orTestStill risky fixer as all tests would not be fool proof, wonder if others have an idea to do the detection better :)
Not worth the effort. Only a perfectionist would care about the difference; it has no bearing on functionality whatsoever.
actually we had same issue and had to fix it.
I would simplify check - *Test(?:Case)? in name or parent class.
While you're at it, rename setup to setUp and teardown to tearDown.
Most helpful comment
While you're at it, rename
setuptosetUpandteardowntotearDown.