Skip to content

Available symbols ​

The runtime contains only reviewed WordPress functions and classes.

Find a symbol ​

Open the file installed with the package - SYMBOLS-INFO.md:

text
vendor/doiftrue/unitest-wp-copy/SYMBOLS-INFO.md

Use this file instead of the repository copy because it matches your installed WordPress line and package version.

Read the symbol type ​

SectionHow to use it
Runtime-adapted classesInstantiate or extend the reduced class.
Custom-adapted symbolsUse the runtime-specific implementation directly.
Copied mockable functionsUse real behavior or override it with WP_Mock.
Copied functions and classesUse the original copied behavior directly.

For runtime-adapted classes, [wp] marks an unchanged WordPress method and [adapted] marks runtime-specific behavior.

See Runtime-adapted classes for examples of extending WP_REST_Server__Runtime and wpdb__Runtime.

See Override functions to replace a runtime-provided function before bootstrap.

If a symbol is missing ​

Do not add an ad-hoc global stub automatically. Prefer one of these:

  1. Inject a project interface for database, network, or filesystem work.
  2. Wrap the WordPress dependency in a small project adapter.
  3. Use WP_Mock if the symbol is already listed as mockable.
  4. Request a deterministic, dependency-safe symbol in the issue tracker.

Released under the MIT License.