Registry / testing / yoast-wp-test-utils

yoast-wp-test-utils

JSON →
library1.2.1phppackagistunverified

PHPUnit cross-version compatibility layer for testing plugins and themes built for WordPress.

composer require yoast/wp-test-utils
INSTALL
IMPORT
SIG · YOAST-WP-TEST-UTIL
Y
yoast-wp-test-utils
testingphpv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TestCase
use Yoast\WPTestUtils\BrainMonkey\TestCase;

Extend the BrainMonkey TestCase for WordPress unit testing.

use Yoast\WPTestUtils\BrainMonkey\TestCase; class MyTest extends TestCase { public function testExample() { $this->assertTrue(true); } }
Debug
Known issues
gotchaRequires PHPUnit 9.x or 10.x with specific BrainMonkey version compatibility.
fix
Ensure your PHPUnit version matches the package requirements (see composer.json).
affects: >=1.0.0
Upgrade
Version history
1.2.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources
yoast-wp-test-utils — pip install yoast-wp-test-utils · libregistry