We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b40fa1 commit 85d56b6Copy full SHA for 85d56b6
src/Monkey.php
@@ -71,18 +71,18 @@ public static function setUpWP()
71
*/
72
public static function tearDown()
73
{
74
+ Functions::__flush();
75
Patchwork\undoAll();
76
Mockery::close();
- Functions::__flush();
77
}
78
79
/**
80
* Clean up Functions and Hooks statics: is always needed when using this class.
81
82
public static function tearDownWP()
83
84
- self::tearDown();
85
Hooks::tearDown();
+ self::tearDown();
86
87
88
src/Monkey/WP/Hooks.php
@@ -139,6 +139,7 @@ public static function tearDown()
139
self::$instances[self::FILTER] = null;
140
141
self::$instances = [];
142
+ self::$names = [];
143
self::$current = null;
144
145
0 commit comments