PHPackages                             frozzare/wp-test-suite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. frozzare/wp-test-suite

ActiveLibrary[Testing &amp; Quality](/categories/testing)

frozzare/wp-test-suite
======================

Run WordPress test easy

v1.1.1(9y ago)2226.2k↑600%3[1 issues](https://github.com/wpup/test-suite/issues)20MITPHPPHP ^5.6 || ^7.0CI failing

Since Apr 14Pushed 6y ago3 watchersCompare

[ Source](https://github.com/wpup/test-suite)[ Packagist](https://packagist.org/packages/frozzare/wp-test-suite)[ RSS](/packages/frozzare-wp-test-suite/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (1)Versions (25)Used By (20)

WordPress Test Suite
====================

[](#wordpress-test-suite)

[![Build Status](https://camo.githubusercontent.com/461db36615452fda8749fb2cfc516e142d0fac5591e6b7e4467258887fc7ed47/68747470733a2f2f7472617669732d63692e6f72672f777075702f746573742d73756974652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wpup/test-suite)[![No Maintenance Intended](https://camo.githubusercontent.com/d904056147052e22d8e1c7f46bb50293ed2aeb4c43ead9a2d0cf7a48b46d0562/687474703a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](http://unmaintained.tech/)

Instead of adding a `boostrap.php` to every plugin you do you can just install this package and point to the `bootstrap.php`. For small plugins this should be enough. If you require something more advanced this isn't the package for your project.

Install
=======

[](#install)

```
composer require frozzare/wp-test-suite

```

Example
-------

[](#example)

Example `.travis.yml`:

```
language: php

php:
  - 5.4
  - 5.5
  - 5.6

env:
  - WP_VERSION=latest WP_MULTISITE=0

install:
  - travis_retry composer install --no-interaction --prefer-source

before_script:
  - bash vendor/frozzare/wp-test-suite/bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 $WP_VERSION

script: vendor/bin/phpunit
```

Example `phpunit.xml.dist`:

```

      ./tests/

```

Example of using your own `tests/boostrap.php` with WordPress Test Suite:

```
require __DIR__ . '/../vendor/autoload.php';

WP_Test_Suite::load_plugins( [
  __DIR__ . '/../simple-gtm.php'
] );

WP_Test_Suite::run();
```

Documentation
-------------

[](#documentation)

#### Without a bootstrap.php

[](#without-a-bootstrapphp)

#### install-wp-tests.sh

[](#install-wp-testssh)

This package include `install-wp-tests.sh` and the path is:

```
vendor/frozzare/wp-test-suite/bin/install-wp-tests.sh

```

##### WTS\_PLUGIN\_FILE\_NAME

[](#wts_plugin_file_name)

With this constant you don't have to create your own `boostrap.php`. Just include `WTS_PLUGIN_FILE_NAME` const in your `phpunit.xml.dist` with the plugin file name that should be loaded.

#### With a bootstrap.php

[](#with-a-bootstrapphp)

##### WP\_Test\_Suite::load\_plugins

[](#wp_test_suiteload_plugins)

A array of plugin paths or a string of a plugin path to load.

##### WP\_Test\_Suite::load\_files

[](#wp_test_suiteload_files)

A array of file paths or a string of a file path to load.

##### WP\_Test\_Suite::set\_test\_root

[](#wp_test_suiteset_test_root)

Set a new test root path. It will try to autoload from:

- `WP_DEVELOP_DIR/tests/phpunit`
- `/tmp/wordpress-develop/tests/phpunit`
- `/tmp/wordpress-tests-lib`
- `/srv/www/wordpress-develop/tests/phpunit`
- `/srv/www/wordpress-develop/public_html/tests/phpunit`

License
-------

[](#license)

MIT © [Fredrik Forsmo](https://github.com/frozzare)

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 99% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~31 days

Recently: every ~96 days

Total

23

Last Release

3416d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3

v1.1.0PHP ^5.6 || ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/aacdbaebed26ea1ccdb7e37e2bfd2a572350e1d781d1c0b8830d444adb86104e?d=identicon)[frozzare](/maintainers/frozzare)

---

Top Contributors

[![frozzare](https://avatars.githubusercontent.com/u/14610?v=4)](https://github.com/frozzare "frozzare (104 commits)")[![rasmusbe](https://avatars.githubusercontent.com/u/2124386?v=4)](https://github.com/rasmusbe "rasmusbe (1 commits)")

---

Tags

testwordpresseasysuite

### Embed Badge

![Health badge](/badges/frozzare-wp-test-suite/health.svg)

```
[![Health](https://phpackages.com/badges/frozzare-wp-test-suite/health.svg)](https://phpackages.com/packages/frozzare-wp-test-suite)
```

###  Alternatives

[pestphp/pest

The elegant PHP Testing Framework.

11.6k72.2M20.5k](/packages/pestphp-pest)[lucatume/wp-browser

A set of Codeception modules to test WordPress projects.

6424.1M182](/packages/lucatume-wp-browser)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1499.9M107](/packages/ergebnis-phpunit-slow-test-detector)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M343](/packages/drupal-core-dev)[wp-phpunit/wp-phpunit

WordPress core PHPUnit library

804.3M294](/packages/wp-phpunit-wp-phpunit)[innmind/black-box

Test library

44193.7k114](/packages/innmind-black-box)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
