File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
3- * PHPUnit bootstrap file for WebberZone Knowledge Base.
4- *
5- * This file sets up the testing environment for PHPUnit.
6- *
7- * @package WebberZone\Knowledge_Base
3+ * PHPUnit bootstrap file.
84 */
95
10- require_once dirname ( dirname ( dirname ( dirname ( __DIR__ ) ) ) ) . '/.composer/vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php ' ;
11-
126$ _tests_dir = getenv ( 'WP_TESTS_DIR ' );
137
148// Check if we're installed in a src checkout.
@@ -34,5 +28,8 @@ function _manually_load_plugin() {
3428}
3529tests_add_filter ( 'muplugins_loaded ' , '_manually_load_plugin ' );
3630
31+ // Include the PHPUnit Polyfills autoloader.
32+ require dirname ( __DIR__ ) . '/vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php ' ;
33+
3734// Start up the WP testing environment.
38- require $ _tests_dir . '/includes/bootstrap.php ' ;
35+ require $ _tests_dir . '/includes/bootstrap.php ' ;
You can’t perform that action at this time.
0 commit comments