-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revise NameFixTest by enhancing readability, expanding coverage and r…
…einforcing robustness. Simplified and centralized the testing of diversified name cases and edge-cases for 'NameFixTest.php' in the 'testNameFix' function by using arrays, leading to increased readability, improved coverage and enhanced robustness of the tests. This was supplemented with the addition of a new '!@#$%' test case in the 'negativeTests' array, while keeping the 'testNameFixWithNumericInput' function unchanged. Additionally, the NameFixTest class documentation and comments were improved to provide a clearer understanding of the class's purpose and its methods, particularly the testNameFixFunction and testNameFixWithNumericInput methods. By consolidating individual test methods into a more manageable and efficient loop and array structure, this commit extensively optimizes the NameFixTest. This restructured test now comprehensively covers a wider spectrum of conditions, including simple names, names with accents, and special characters.
- Loading branch information
1 parent
6a5fbc2
commit b9e7e65
Showing
1 changed file
with
53 additions
and
279 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