Registry / testing / automattic-wordbless

automattic-wordbless

JSON →
library0.6.0phppackagistunverified

WorDBless allows you to use WordPress core functions in your PHPUnit tests without having to set up a database and the whole WordPress environment

composer require automattic/wordbless
INSTALL
IMPORT
SIG · AUTOMATTIC-WORDBLE
A
automattic-wordbless
testingphpv0.6.0
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.

Load
use WorDBless\Load;

Load WordPress core functions without a database

use WorDBless\Load; Load::run(); // Now you can use WordPress functions like get_option()
Debug
Known issues
gotchaRequires WordPress core files to be available
fix
Ensure WordPress is installed or include wp-load.php path
affects: >=0.1.0
Upgrade
Version history
0.6.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources