From 9d15755c56e6cb3ab55a8992ee7c2a60e351e352 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Sat, 16 Mar 2024 11:37:00 +0100 Subject: [PATCH] explicitly require polyfills autoloader --- tests/bootstrap.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 26074cc..fbee5f7 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -22,6 +22,11 @@ exit( 1 ); } +// Include polyfills autoloader. +if ( class_exists( '\Yoast\PHPUnitPolyfills\Autoload' ) === false ) { + require_once 'vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php'; +} + // Give access to tests_add_filter() function. require_once "{$_tests_dir}/includes/functions.php";