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(6mo ago)15257.5k↓38.8%3[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 5mo 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 1mo 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

56

—

FairBetter than 98% of packages

Maintenance66

Regular maintenance activity

Popularity43

Moderate usage in the ecosystem

Community14

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

192d 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://www.gravatar.com/avatar/193fce7c976005d2fdb59268f6ebc90f262d21e3cbc01e65300200ff70d74fe6?d=identicon)[Kocal](/maintainers/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

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[codeception/codeception

All-in-one PHP Testing Framework

4.9k86.2M2.9k](/packages/codeception-codeception)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)

PHPackages © 2026

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