PHPackages                             phpsoftbox/test-utils - 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. phpsoftbox/test-utils

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

phpsoftbox/test-utils
=====================

Testing utilities for the PhpSoftBox framework

073↑133.3%PHP

Since Mar 27Pushed 1mo agoCompare

[ Source](https://github.com/phpsoftbox/testutils)[ Packagist](https://packagist.org/packages/phpsoftbox/test-utils)[ RSS](/packages/phpsoftbox-test-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PhpSoftBox TestUtils
====================

[](#phpsoftbox-testutils)

Утилиты для тестирования пакетов и приложений на PhpSoftBox.

Документация
------------

[](#документация)

Подробная документация разбита по темам в [`docs/`](docs/README.md):

1. [Установка и Bootstrap](docs/01-installation-and-bootstrap.md)
2. [Базовые TestCase и HTTP-клиент](docs/02-test-cases-and-http.md)
3. [Перезагрузка БД](docs/03-database-reloader.md)
4. [Inertia и snapshot-тестирование](docs/04-snapshots-and-inertia.md)
5. [Fixture API (подробно)](docs/05-fixtures-overview.md)
6. [Интеграция fixture в приложение](docs/06-fixtures-integration.md)

Примеры
-------

[](#примеры)

- [`examples/tests-bootstrap.php`](examples/tests-bootstrap.php)
- [`examples/http-client-configurator.php`](examples/http-client-configurator.php)

Быстрый старт
-------------

[](#быстрый-старт)

```
composer require --dev phpsoftbox/test-utils
```

Используйте:

- `ApplicationTestCase` — для интеграционных тестов без HTTP;
- `WebTestCase` — для контроллеров и HTTP-интеграции.

Для ручной перезагрузки тестовой БД:

```
php psb test:db:reload --mode=dump --connections=default
```

Если `--connections` не указан, будут перезагружены все подключения из `DatabaseReloaderConfig`.

Важно
-----

[](#важно)

- `FixtureRunner`/`FixtureContext` не завязаны на контейнер.
- Area/domain-специфичные фикстуры остаются в приложении (`tests/Utils/...`).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance59

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0279d150240c97d210034878b0467462246dc14d29b5618157ff6a8be49a50e3?d=identicon)[inspector-who](/maintainers/inspector-who)

---

Top Contributors

[![inspector-who](https://avatars.githubusercontent.com/u/6973963?v=4)](https://github.com/inspector-who "inspector-who (1 commits)")

### Embed Badge

![Health badge](/badges/phpsoftbox-test-utils/health.svg)

```
[![Health](https://phpackages.com/badges/phpsoftbox-test-utils/health.svg)](https://phpackages.com/packages/phpsoftbox-test-utils)
```

###  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)
