PHPackages                             phariscope/doctrine-testing-tools - 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. phariscope/doctrine-testing-tools

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

phariscope/doctrine-testing-tools
=================================

A PHP component to test Doctrine Repositories

v1.3.8(2y ago)08.4k↑140.6%2MITPHPPHP &gt;=8.1

Since Jan 19Pushed 1y agoCompare

[ Source](https://github.com/phariscope/doctrine-testing-tools)[ Packagist](https://packagist.org/packages/phariscope/doctrine-testing-tools)[ RSS](/packages/phariscope-doctrine-testing-tools/feed)WikiDiscussions dev Synced today

READMEChangelog (10)Dependencies (13)Versions (16)Used By (0)

Doctrine Testing Tools
======================

[](#doctrine-testing-tools)

A PHP component to help testing Doctrine SQL Repositories.

To reduce process time, this component will only drop requested tables using SQL queries. I only use it on MySQL and SQLite databases so I do not need this component to work with other solutions.

Usage
-----

[](#usage)

To use this component, you need to :

- Add **DoctrineRepositoryTesterTrait** to every doctrine repository tests.
- In `setUp()`, call `$this->initDoctrineTester()` to initialize the tester. You now have access to :
    - `clearTables(array $tablesToClear)` to clear every table you want to clear.
    - `getEntityManager()` to access an instance of *EntityManagerInterface* for your repository.

Look into the **ExempleRepositoryDoctrine** if you need an exemple.

Install
-------

[](#install)

```
composer require --dev phariscope/doctrine-testing-tools
```

To contribute to Doctrine Testing Tools
---------------------------------------

[](#to-contribute-to-doctrine-testing-tools)

### Requirements:

[](#requirements)

- docker
- git

### Unit tests

[](#unit-tests)

```
bin/phpunit
```

### Integration tests

[](#integration-tests)

```
bin/phpunit-integration
```

### Quality

[](#quality)

#### Some indicators:

[](#some-indicators)

- phpcs PSR12
- phpstan level 9
- coverage &gt;= 100%
- infection MSI &gt;= 100%

#### Quick check with:

[](#quick-check-with)

```
./codecheck
```

#### Check coverage with:

[](#check-coverage-with)

```
bin/phpunit --coverage-html var
```

and view 'var/index.html' in your browser

#### Check infection with:

[](#check-infection-with)

```
bin/infection
```

and view 'var/infection.html' in your browser

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~12 days

Recently: every ~29 days

Total

13

Last Release

753d ago

### Community

Maintainers

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

---

Top Contributors

[![Boubounech](https://avatars.githubusercontent.com/u/71706996?v=4)](https://github.com/Boubounech "Boubounech (17 commits)")[![frederic100](https://avatars.githubusercontent.com/u/50176793?v=4)](https://github.com/frederic100 "frederic100 (11 commits)")[![brudert](https://avatars.githubusercontent.com/u/74777353?v=4)](https://github.com/brudert "brudert (8 commits)")[![ApoPedro](https://avatars.githubusercontent.com/u/85630670?v=4)](https://github.com/ApoPedro "ApoPedro (1 commits)")

---

Tags

unittestdoctrine

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phariscope-doctrine-testing-tools/health.svg)

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

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)

PHPackages © 2026

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