Skip to content

Commit fffd360

Browse files
committed
refactor: update PHPUnit bootstrap file path and simplify header docs
1 parent 7ceeb70 commit fffd360

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

phpunit/bootstrap.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
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
}
3529
tests_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';

0 commit comments

Comments
 (0)