-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Summary <!-- Required --> ~~Adds a `WP_MockException` object and overhauls exceptions used or referenced within project.~~ After consideration, I decided to go for more specific exceptions in the PHP stdlib - such as `RunTimeException` or `InvalidArgumentException` when applicable. I realized that WP_Mock already uses other domain-specific exceptions when it comes to assertions failed or mockery exceptions, so perhaps at the moment we don't need a specific WP_Mock exception. Had to make additional changes due to PhpStan errors after updating code. ### Closes: #189 ## Contributor checklist <!-- Required --> <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you are unsure about any of these, please ask for clarification. We are here to help! --> - [x] I agree to follow this project's [**Code of Conduct**](https://github.com/10up/.github/blob/trunk/CODE_OF_CONDUCT.md). - [x] I have updated the documentation accordingly - [x] I have added tests to cover changes introduced by this pull request - [x] All new and existing tests pass ## Testing <!-- Required --> <!-- If applicable, add specific steps for the reviewer to perform as part of their testing process prior to approving this pull request. --> - [ ] Tests and code analysis passes <!-- List any configuration requirements for testing. --> ### Reviewer checklist <!-- Required --> <!-- The following checklist is for the reviewer: add any steps that may be relevant while reviewing this pull request --> - [ ] Code changes review - [ ] Documentation changes review - [ ] Unit tests pass - [ ] Static analysis passes
- Loading branch information
Showing
10 changed files
with
313 additions
and
451 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
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
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
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.