Skip to content

Commit

Permalink
explicitly require polyfills autoloader
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode committed Mar 16, 2024
1 parent 9b6f4bb commit 9d15755
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 9d15755

Please sign in to comment.