Skip to content

Commit

Permalink
Build/Tests: Ensure set_error_handler is cleaned up.
Browse files Browse the repository at this point in the history
Follow up to: [57332].

Fixes #60305.



git-svn-id: https://develop.svn.wordpress.org/trunk@57361 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
aaronjorbin committed Jan 26, 2024
1 parent fe1df40 commit 3cb6f03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/phpunit/tests/theme/wpThemeJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -4304,6 +4304,9 @@ static function ( $errno, $errstr ) {
);

$theme_json->set_spacing_sizes();

restore_error_handler();

$this->assertSame( $expected_output, _wp_array_get( $theme_json->get_raw_data(), array( 'settings', 'spacing', 'spacingSizes', 'default' ) ) );
}

Expand Down

0 comments on commit 3cb6f03

Please sign in to comment.