PHPackages                             bojaghi/wp-tests - 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. bojaghi/wp-tests

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

bojaghi/wp-tests
================

Re-usable WordPress unit test library setup

1.1.0(1y ago)010619GPL-2.0-or-laterPHPPHP &gt;=8.0

Since Oct 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bojaghi/wp-tests)[ Packagist](https://packagist.org/packages/bojaghi/wp-tests)[ Docs](https://github.com/bojaghi/wp-tests)[ RSS](/packages/bojaghi-wp-tests/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (19)

WP Tests
========

[](#wp-tests)

WordPress 테스트 수트를 재활용하기 위한 패키지입니다.

사용법
---

[](#사용법)

`vendor/bin/wp-tests` 스크립트는 테스트를 위해 사용되는 스크립트입니다. 이 스크립트로 아래 와 같은 동작을 진행할 수 있습니다.

- 데이터베이스 사용자 생성하기
- 테스트 데이터베이스와 테이블 생성하기
- 유닛 테스트 설정 적용하기

### 설치하기

[](#설치하기)

Development 패키지로 설치합니다.

```
composer require --dev bojaghi/wp-tests

```

아래 명령어를 이용해 테스트 사용자와, 해당 사용자에 테스트 DB의 권한을 지정합니다.

```
vendor/bin/wp-tests -c

```

### 섫정 복제하기

[](#섫정-복제하기)

아래 명령어를 이용해 wp-tests 패키지로부터 테스트에 필요한 기초 설정을 가져옵니다.

```
vendor/bin/wp-tests -i

```

### 테스트 데이터베이스와 테스트 수트 설치

[](#테스트-데이터베이스와-테스트-수트-설치)

테스트에 필요한 설정들이 잘 심어졌다면, 다음 명령으로 테스트 데이터베이스를 생성합니다. 워드프레스 테스트 수트도 같이 설치됩니다. 이 때 subversion 이 필요합니다.

```
composer wp-tests:setup

```

### 테스트하기

[](#테스트하기)

아래 명령어를 사용해 PhpUnit을 실행할 수 있습니다.

```
composer wp-tests

```

정상 동작을 위해 `phpunit.xml` 파일을 열어

```
./tests/TestSample.php
```

부분을 주석 처리합니다.

```

```

이렇게 처리하여 아주 간단한 `TestSample.php`에 대해 테스트를 진행할 수 있습니다.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance40

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~16 days

Total

5

Last Release

510d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.2

1.0.1PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bbfd1d4316ffdccc98504cdbdd210c69a6add7dca21678ad402ccedb3ff4764?d=identicon)[ep6tri](/maintainers/ep6tri)

---

Top Contributors

[![chwnam](https://avatars.githubusercontent.com/u/6630320?v=4)](https://github.com/chwnam "chwnam (6 commits)")

### Embed Badge

![Health badge](/badges/bojaghi-wp-tests/health.svg)

```
[![Health](https://phpackages.com/badges/bojaghi-wp-tests/health.svg)](https://phpackages.com/packages/bojaghi-wp-tests)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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