PHPackages                             kocal/symfony-mailer-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. kocal/symfony-mailer-testing

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

kocal/symfony-mailer-testing
============================

Test your emails with Behat and Cypress, when using the Symfony Mailer component.

v1.4.0(7mo ago)15268.3k↓75.4%4[2 issues](https://github.com/Kocal/SymfonyMailerTesting/issues)MITPHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0CI failing

Since May 17Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/Kocal/SymfonyMailerTesting)[ Packagist](https://packagist.org/packages/kocal/symfony-mailer-testing)[ RSS](/packages/kocal-symfony-mailer-testing/feed)WikiDiscussions main Synced 2d ago

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

Symfony Mailer Testing
======================

[](#symfony-mailer-testing)

[![Package version](https://camo.githubusercontent.com/312b8e5294217f5b5e3969101b20e5c4e3ed6efe2aaa9cb5ba0275fab333453b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f63616c2f73796d666f6e792d6d61696c65722d74657374696e673f696e636c7564655f70726572656c6561736573)](https://camo.githubusercontent.com/312b8e5294217f5b5e3969101b20e5c4e3ed6efe2aaa9cb5ba0275fab333453b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f63616c2f73796d666f6e792d6d61696c65722d74657374696e673f696e636c7564655f70726572656c6561736573)[![PHP supported versions](https://camo.githubusercontent.com/07407a8b2a77ff1a37e931fbf64a7bd135185983102ab675c9254fb1ef12a557/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b6f63616c2f73796d666f6e792d6d61696c65722d74657374696e67)](https://camo.githubusercontent.com/07407a8b2a77ff1a37e931fbf64a7bd135185983102ab675c9254fb1ef12a557/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b6f63616c2f73796d666f6e792d6d61696c65722d74657374696e67)[![Symfony supported version](https://camo.githubusercontent.com/c967f7842b3213d448435eef93efc6b943c31529011eae9eff69578ffba43c03/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d253545342e34253230253743253743253230253545352e30253230253743253743253230253545362e302d626c7565)](https://camo.githubusercontent.com/c967f7842b3213d448435eef93efc6b943c31529011eae9eff69578ffba43c03/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d253545342e34253230253743253743253230253545352e30253230253743253743253230253545362e302d626c7565)[![License](https://camo.githubusercontent.com/01a97e4b1f5c3c68f1100e2af53603d3bf2bdb970db72652846bc7182fe3fc25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b6f63616c2f73796d666f6e792d6d61696c65722d74657374696e67)](https://camo.githubusercontent.com/01a97e4b1f5c3c68f1100e2af53603d3bf2bdb970db72652846bc7182fe3fc25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b6f63616c2f73796d666f6e792d6d61696c65722d74657374696e67)[![CI](https://github.com/Kocal/SymfonyMailerTesting/workflows/CI/badge.svg)](https://github.com/Kocal/SymfonyMailerTesting/workflows/CI/badge.svg)

Test emails sent by the [Symfony Mailer](https://symfony.com/doc/current/mailer.html) with [Behat](https://docs.behat.org/en/latest/) and [Cypress](https://www.cypress.io/).

This testing library provides the same [PHPUnit assertions for Email Messages](https://symfony.com/blog/new-in-symfony-4-4-phpunit-assertions-for-email-messages) from Symfony, but for Behat and Cypress:

- `assertEmailCount`
- `assertQueuedEmailCount`
- `assertEmailIsQueued`
- `assertEmailIsNotQueued`
- `assertEmailAttachmentCount`
- `assertEmailTextBodyContains`
- `assertEmailTextBodyNotContains`
- `assertEmailHtmlBodyContains`
- `assertEmailHtmlBodyNotContains`
- `assertEmailHasHeader`
- `assertEmailNotHasHeader`
- `assertEmailHeaderSame`
- `assertEmailHeaderNotSame`
- `assertEmailAddressContains`

With additional assertions:

- `assertEmailSubjectSame`
- `assertEmailSubjectContains`
- `assertEmailSubjectMatches`
- `assertEmailTextBodyMatches`
- `assertEmailTextBodyNotMatches`
- `assertEmailHtmlBodyMatches`
- `assertEmailHtmlBodyNotMatches`
- `assertEmailAttachmentNameSame`
- `assertEmailAttachmentNameMatches`

Documentation
=============

[](#documentation)

The documentation can be found at [`./docs`](./docs).

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance60

Regular maintenance activity

Popularity43

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 96.3% 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 ~153 days

Recently: every ~340 days

Total

14

Last Release

238d ago

PHP version history (5 changes)v1.0.0-ALPHAPHP ^7.3

v1.0.0-BETA2PHP ^7.3 || ^8.0

1.0.0PHP ^7.4 || ^8.0

1.1.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

v1.2.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2103975?v=4)[Hugo Alliaume](/maintainers/Kocal)[@Kocal](https://github.com/Kocal)

---

Top Contributors

[![Kocal](https://avatars.githubusercontent.com/u/2103975?v=4)](https://github.com/Kocal "Kocal (79 commits)")[![acardielf](https://avatars.githubusercontent.com/u/1655777?v=4)](https://github.com/acardielf "acardielf (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![RomulusED69](https://avatars.githubusercontent.com/u/9000452?v=4)](https://github.com/RomulusED69 "RomulusED69 (1 commits)")

---

Tags

behatcypressmailersymfonytesting

###  Code Quality

TestsBehat

### Embed Badge

![Health badge](/badges/kocal-symfony-mailer-testing/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[brianium/paratest

Parallel testing for PHP

2.5k136.1M985](/packages/brianium-paratest)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[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)
