forked from woocommerce/woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code hacker resdesign for single-load of code files.
The code hacker as originally designed, as a mechanism that allowed to enable hacks at the individual test level, is flawed because it assumes that code files are loaded before each test, but actually the PHP engine loads code files only once. Therefore this commit redesigns it so that the two existing main hacks, the functions mocker and the static methods hacker, are applied to all the relevant functions and classes at bootstrap time, and mocks for each individual function/method can be registered at the beginning of each test. See README for the full details.
- Loading branch information
Showing
12 changed files
with
491 additions
and
612 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.