kocal / symfony-mailer-testing
Test your emails with Behat and Cypress, when using the Symfony Mailer component.
Installs: 240 457
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 2
Forks: 3
Open Issues: 2
pkg:composer/kocal/symfony-mailer-testing
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
- symfony/mailer: ^5.4 || ^6.0 || ^7.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
- symfony/psr7-pack: ^1.0
This package is auto-updated.
Last update: 2025-11-04 07:09:15 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.