kocal / symfony-mailer-testing
Test your emails with Behat and Cypress, when using the Symfony Mailer component.
Installs: 239 309
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 2
Forks: 3
Open Issues: 1
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-10-29 02:30:49 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:
- 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
The documentation can be found at ./docs.