Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AlwaysReturnInFilter: update unit tests.
* Adjust the "abstract method" test to: 1. Expect a warning. 2. Prevent the hook in getting confused with other functions in the same test file. * Remove the "abstract method implementation" test as it wasn't testing anything. 1. The sniff does not look for child classes, so wouldn't examine that code snippet anyway. Adding this functionality is not that useful either as in most cases, the child class will not be in the same file as the abstract parent class. 2. And even if the sniff did examine it, it would still not recognize it as a child class as the class doesn't `extend` the abstract. * Add a test for a typical case where declared functions do not have a scope opener/closer due to a tokenizer bug. PR squizlabs/PHP_CodeSniffer 3066 is open upstream to fix this. * Add a "live coding" test case.
- Loading branch information