-
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit tests for the NewFunctions sniff.
The functions in the `NewFunctions` sniff appeared not to be covered by unit tests. These have now been added. Also: * Make function name comparison case-insensitive as function calls are case-insensitive in PHP. * Exclude namespaced functions from this sniff (basic check). * Removed empty item from functions list * Added numerous extra functions to sniff for. Additionally some extra `noViolation` tests have been set up to make sure namespaced function calls will not be reported by this sniff. Removed the new methods which were mixed into the functions list as they can not be tested for in this way. Most cannot be called statically and if not called statically, there is little way to tell if the method belongs to that class.
- Loading branch information
Showing
3 changed files
with
771 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.