woocommerce/tests/Tools/CodeHacking/Hacks
Nestor Soriano bfda3f9938 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.
2020-06-02 19:06:53 +02:00
..
BypassFinalsHack.php Code hacker resdesign for single-load of code files. 2020-06-02 19:06:53 +02:00
CodeHack.php Code hacker resdesign for single-load of code files. 2020-06-02 19:06:53 +02:00
FunctionsMockerHack.php Code hacker resdesign for single-load of code files. 2020-06-02 19:06:53 +02:00
StaticMockerHack.php Code hacker resdesign for single-load of code files. 2020-06-02 19:06:53 +02:00