Registry / testing / wp-phpunit-wp-phpunit

wp-phpunit-wp-phpunit

JSON →
library6.9.4phppackagistunverified

WordPress core PHPUnit library

composer require wp-phpunit/wp-phpunit
INSTALL
IMPORT
SIG · WP-PHPUNIT-WP-PHPU
W
wp-phpunit-wp-phpunit
testingphpv6.9.4
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.

WP_UnitTestCase
✓ use WP_UnitTestCase;

Write a basic WordPress unit test

use WP_UnitTestCase; class MyTest extends WP_UnitTestCase { public function test_example() { $this->assertTrue(true); } }
Debug
Known issues
gotchaRequires WordPress test suite setup
fix
Install WordPress test suite and configure wp-tests-config.php
affects: >=1.0
Upgrade
Version history
6.9.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
18
Resources