PHPackages                             phphd/cache-test-bundle - 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. phphd/cache-test-bundle

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

phphd/cache-test-bundle
=======================

Clearing Symfony cache pools between test runs

1.0.0(2y ago)232MITPHPPHP &gt;=8.0.2

Since Dec 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/phphd/cache-test-bundle)[ Packagist](https://packagist.org/packages/phphd/cache-test-bundle)[ RSS](/packages/phphd-cache-test-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (2)Used By (0)

PhdCacheTestBundle
==================

[](#phdcachetestbundle)

🧰 Provides Symfony Cache clearing extension for PHPUnit.

[![Codecov](https://camo.githubusercontent.com/d075ecd3cd446a5b07ce6e28dbc256b21ab515a3728d0c217de05439cb2c7a2f/68747470733a2f2f636f6465636f762e696f2f67682f70687068642f63616368652d746573742d62756e646c652f67726170682f62616467652e7376673f746f6b656e3d344d3458344446484736)](https://codecov.io/gh/phphd/cache-test-bundle)[![Licence](https://camo.githubusercontent.com/3c8001c4d9c1712dbc3f4140404eda3566984a1a7ebfc39821fb2b641bdf2ffd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70687068642f63616368652d746573742d62756e646c652e737667)](https://github.com/phphd/cache-test-bundle/blob/main/LICENSE)[![Build Status](https://github.com/phphd/cache-test-bundle/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/phphd/cache-test-bundle/actions?query=branch%3Amain)

Installation ⚒️
---------------

[](#installation-️)

1. Install via composer

    ```
    composer require --dev phphd/cache-test-bundle
    ```
2. Enable the bundle in the `bundles.php`

    ```
    PhPhD\CacheTestBundle\PhdCacheTestBundle::class => ['test' => true],
    ```
3. Add PHPUnit extension

    ```

    ```

Usage 🚀
-------

[](#usage-)

It is possible to use this bundle to clear cache pools for any tests that extend `Symfony\Bundle\FrameworkBundle\Test\KernelTestCase` (`WebTestCase`, `ApiTestCase`, etc.)

Use `#[ClearPool]` attribute in order to clear caches:

```
use PhPhD\CacheTest\ClearPool;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

#[ClearPool('my_cache_pool')]
final class BlogControllerTest extends WebTestCase
{
    public function testIndex(): void
    {
        $client = static::createClient();
        $client->request('GET', '/en/blog/');

        self::assertResponseIsSuccessful();
    }
}
```

In the example above, `my_cache_pool` will be cleared before every test from `BlogControllerTest`.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

870d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/41589422?v=4)[Yevhen Sidelnyk](/maintainers/rela589n)[@rela589n](https://github.com/rela589n)

---

Top Contributors

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

---

Tags

cacheclearpoolsymfonytesttestingphpunit

###  Code Quality

Static AnalysisPHPStan, Psalm

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phphd-cache-test-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/phphd-cache-test-bundle/health.svg)](https://phpackages.com/packages/phphd-cache-test-bundle)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69617.9M510](/packages/spatie-phpunit-snapshot-assertions)[yoast/phpunit-polyfills

Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests

18438.5M841](/packages/yoast-phpunit-polyfills)[ta-tikoma/phpunit-architecture-test

Methods for testing application architecture

10745.9M13](/packages/ta-tikoma-phpunit-architecture-test)[matthiasnoback/symfony-config-test

Library for testing user classes related to the Symfony Config Component

1679.8M395](/packages/matthiasnoback-symfony-config-test)[php-mock/php-mock-phpunit

Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.

1718.2M399](/packages/php-mock-php-mock-phpunit)

PHPackages © 2026

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