diff --git a/tests/phpunit/includes/utils.php b/tests/phpunit/includes/utils.php index cb28fb1e91..16b331b6a6 100644 --- a/tests/phpunit/includes/utils.php +++ b/tests/phpunit/includes/utils.php @@ -461,7 +461,7 @@ function gen_tests_array( $name, $array ) { /** * Use to create objects by yourself */ -class MockClass {} +class MockClass extends stdClass {} /** * Drops all tables from the WordPress database