-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHPUnit tests: fix deprecation notices on PHPUnit 10
PHPUnit 11 will be stricter about the data passed from data providers to test methods. * The amount of parameters passed has to match the expected number of parameters exactly. * If the data sets use keys, the parameter names have to match the keys as used in each data set (inner array). PHPUnit 10 warns about these changes via deprecation notices. As the success and fail tests use the same input and to avoid duplication, I've added some interim data provider methods to prevent the deprecation notices and allow for update to PHPUnit 11, while still avoiding data duplication.
- Loading branch information
Showing
1 changed file
with
54 additions
and
6 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