* * */ final class CodeHackerTestHook implements BeforeTestHook { /** * Runs before each test. * * @param string $test "TestClass::TestMethod". * * @throws \ReflectionException Thrown by execute_before_methods. */ public function executeBeforeTest( string $test ): void { CodeHacker::reset_hacks(); } }