Skip to content

Commit

Permalink
Merge pull request #17 from stellarwp/fix/leaking-tests
Browse files Browse the repository at this point in the history
Fix possible leaking tests
  • Loading branch information
dpanta94 authored Jun 20, 2024
2 parents fa48149 + cb700c8 commit 63fb44d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/wpunit/AssetsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function tearDown() {
*/
public function unset_uopz_redefines() {
if ( function_exists( 'uopz_redefine' ) ) {
// Restore in reverse order.
self::$uopz_redefines = array_reverse( self::$uopz_redefines );

foreach ( self::$uopz_redefines as $restore_callback ) {
$restore_callback();
}
Expand Down

0 comments on commit 63fb44d

Please sign in to comment.