kocal / symfony-mailer-testing
Test your emails with Behat and Cypress, when using the Symfony Mailer component.
v1.4.0
2025-11-07 21:53 UTC
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0
- ext-json: *
- phpunit/phpunit: ^9.1 || ^10.0
- symfony/console: ^5.4 || ^6.0 || ^7.0 || ^8.0
- symfony/mailer: ^5.4 || ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8
- behat/behat: ^3.6
- friends-of-behat/symfony-extension: ^2.2
- nyholm/psr7: ^1.8
- symfony/framework-bundle: ^5.4 || ^6.0 || ^7.0 || ^8.0
- symfony/psr7-pack: ^1.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-08-27 15:30:58 UTC
README
Test emails sent by the Symfony Mailer with Behat and Cypress.
This testing library provides the same PHPUnit assertions for Email Messages from Symfony, but for Behat and Cypress:
assertEmailCountassertQueuedEmailCountassertEmailIsQueuedassertEmailIsNotQueuedassertEmailAttachmentCountassertEmailTextBodyContainsassertEmailTextBodyNotContainsassertEmailHtmlBodyContainsassertEmailHtmlBodyNotContainsassertEmailHasHeaderassertEmailNotHasHeaderassertEmailHeaderSameassertEmailHeaderNotSameassertEmailAddressContains
With additional assertions:
assertEmailSubjectSameassertEmailSubjectContainsassertEmailSubjectMatchesassertEmailTextBodyMatchesassertEmailTextBodyNotMatchesassertEmailHtmlBodyMatchesassertEmailHtmlBodyNotMatchesassertEmailAttachmentNameSameassertEmailAttachmentNameMatches
Documentation
The documentation can be found at ./docs.