PHPackages                             spiral/testing - 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. spiral/testing

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

spiral/testing
==============

Spiral Framework testing SDK

3.0.0(1mo ago)72.0M↓57.2%7[9 issues](https://github.com/spiral/testing/issues)[2 PRs](https://github.com/spiral/testing/pulls)20MITPHPPHP &gt;=8.4CI passing

Since Feb 8Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/spiral/testing)[ Packagist](https://packagist.org/packages/spiral/testing)[ Docs](https://spiral.dev/)[ GitHub Sponsors](https://github.com/sponsors/spiral)[ RSS](/packages/spiral-testing/feed)WikiDiscussions 3.x Synced 2d ago

READMEChangelog (10)Dependencies (54)Versions (40)Used By (20)

Spiral Framework testing SDK
============================

[](#spiral-framework-testing-sdk)

[![Latest Version on Packagist](https://camo.githubusercontent.com/94043986772f9a51b7da66596d984ff5fc66768bd0274ff544c6e7f71d703539/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73706972616c2f74657374696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spiral/testing)[![Total Downloads](https://camo.githubusercontent.com/12126dc840dd6668ccbbf0862120f30e15db05741a13c03dabe0bc184200bf12/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73706972616c2f74657374696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spiral/testing)

Requirements
------------

[](#requirements)

Make sure that your server is configured with following PHP version and extensions:

- PHP 8.1+
- Spiral framework 3.15+

Documentation on how to install and use the package can be found on the official documentation page - [Testing — Getting Started](https://spiral.dev/docs/testing-start)

Spiral package testing
----------------------

[](#spiral-package-testing)

There are some difference between App and package testing. One of them - tou don't have application and bootloaders.

TestCase from the package has custom TestApp implementation that will help you to test your packages without creating extra classes.

The following example will show you how it is easy-peasy.

#### Tests folder structure:

[](#tests-folder-structure)

```
tests
  - app
    - config
      - my-config.php
    - ...
  - src
    - TestCase.php
    - MyFirstTestCase.php

```

### TestCase configuration

[](#testcase-configuration)

```
namespace MyPackage\Tests;

abstract class TestCase extends \Spiral\Testing\TestCase
{
    public function rootDirectory(): string
    {
        return __DIR__.'/../';
    }

    public function defineBootloaders(): array
    {
        return [
            \MyPackage\Bootloaders\PackageBootloader::class,
            // ...
        ];
    }
}
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

61

—

FairBetter than 98% of packages

Maintenance69

Regular maintenance activity

Popularity48

Moderate usage in the ecosystem

Community37

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 57.8% 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 ~44 days

Recently: every ~23 days

Total

36

Last Release

57d ago

Major Versions

1.2.1 → 2.0-beta2022-06-24

1.3.0 → 2.0.02022-07-23

1.x-dev → 2.3.02023-04-21

2.x-dev → 3.0.02026-05-07

PHP version history (3 changes)1.0.0PHP &gt;=7.4

2.0-betaPHP &gt;=8.1

3.0.0PHP &gt;=8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/796136?v=4)[Anton Tsitou](/maintainers/wolfy-j)[@wolfy-j](https://github.com/wolfy-j)

![](https://avatars.githubusercontent.com/u/773481?v=4)[Pavel Buchnev](/maintainers/butschster)[@butschster](https://github.com/butschster)

![](https://www.gravatar.com/avatar/110fa17dca123e71e4ef4132d1d6a66d20058a07fc6118e716dd67dd4316e886?d=identicon)[roxblnfk](/maintainers/roxblnfk)

---

Top Contributors

[![butschster](https://avatars.githubusercontent.com/u/773481?v=4)](https://github.com/butschster "butschster (107 commits)")[![roxblnfk](https://avatars.githubusercontent.com/u/4152481?v=4)](https://github.com/roxblnfk "roxblnfk (26 commits)")[![msmakouz](https://avatars.githubusercontent.com/u/67324318?v=4)](https://github.com/msmakouz "msmakouz (21 commits)")[![gam6itko](https://avatars.githubusercontent.com/u/3841197?v=4)](https://github.com/gam6itko "gam6itko (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![chiost](https://avatars.githubusercontent.com/u/20780447?v=4)](https://github.com/chiost "chiost (2 commits)")[![aquaminer](https://avatars.githubusercontent.com/u/17113289?v=4)](https://github.com/aquaminer "aquaminer (1 commits)")[![jcsilkey](https://avatars.githubusercontent.com/u/1775194?v=4)](https://github.com/jcsilkey "jcsilkey (1 commits)")[![meekstellar](https://avatars.githubusercontent.com/u/44509066?v=4)](https://github.com/meekstellar "meekstellar (1 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")

---

Tags

phpphp7spiral-frameworktestingtesting-toolstestingspiralspiral-packages

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spiral-testing/health.svg)

```
[![Health](https://phpackages.com/badges/spiral-testing/health.svg)](https://phpackages.com/packages/spiral-testing)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k42.5M40.8k](/packages/orchestra-testbench)[brianium/paratest

Parallel testing for PHP

2.5k136.1M986](/packages/brianium-paratest)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15312.0M36](/packages/magento-magento2-functional-testing-framework)[contao/contao

Contao Open Source CMS development package

43114.4k2](/packages/contao-contao)

PHPackages © 2026

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