Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Mailer Test Laravel Package

zenstruck/mailer-test

Opinionated helpers to test emails sent with symfony/mailer. Use InteractsWithMailer in KernelTestCase/WebTestCase for fluent assertions like assertNoEmailSent, assertSentEmailCount, and inspect messages with TestEmail (subject, recipients, body, attachments).

View on GitHub
Deep Wiki
Context7
v1.5.0

002462f feat: allow symfony 8 (#32) by @Chris53897, @Chris8934, @kbond 91755bf chore: update PHPStan 1 = 2 (#31) by @Chris53897, @Chris8934 ab86edd doc: add screencast link by @kbond 5f26ef2 minor: fix test deprecations (#30) by @kbond

Full Change List

v1.4.2

8d75e40 fix: PHPUnit deprecation (#29) by @norkunas a7bd13d chore: fix ci deprecations (#28) by @Chris53897, @Chris8934

Full Change List

v1.4.1

3177e7d fix: allow 7.0+ for symfony/mailer (#27) by @kbond

Full Change List

v1.4.0

93306fb feat: Symfony 7 support (#26) by @kbond

Full Change List

v1.3.0

bb45289 feat: allow asserting on Signed emails (#24) by @kbond fbb32ae feat: require php 8+ (#22) by @kbond

Full Change List

v1.2.0

673510d feat: make some TestEmail::assertHasFile() parameters optional (#20) by @kbond a60b4e7 fix: TestEmail::assertHasFile() (#20) by @kbond f3ede9c fix(ci): add token by @kbond 76d39b5 chore(ci): fix by @kbond f8f8763 ci: fix (#18) by @kbond 3a594fc [minor] support Symfony 6.1 (#16) by @kbond

Full Change List

v1.1.0

52aca25 [minor] remove scrutinizer (#15) by @kbond 6ce062d [feature] require Symfony 5.4+ (#15) by @kbond e5caa26 [minor] add static code analysis with phpstan (#14) by @kbond

Full Change List

v1.0.0

Stable release!

Full Change List

v0.5.0

d316726 [feature] allow Symfony 6 (#7) by @kbond

Full Change List

v0.4.0

bedd52a [minor] add static return type for TestEmail methods by @kbond f64e7f2 [docs] document new features (#13) by @kbond 58d2f7e [feature] add more SentEmails collection filters (#13) by @kbond edc7922 [feature] add TestEmail::dump()/dd() (#13) by @kbond 8a8b0da [feature] add TestEmail::assertSubjectContains() (#13) by @kbond 20d2635 [feature] add SentEmails collection methods/filters (#13) by @kbond 59b0ce5 [BC BREAK] remove TestMailer::sentTestEmails() (#13) by @kbond 1ad786e [feature][BC BREAK] SentEmails is now a collection of TestEmail's (#13) by @kbond 48e37f8 [feature] allow Email/no typehint assertEmailSentTo callback (#13) by @kbond 379624a [ci] use reusable workflows (#12) by @kbond

Full Change List

v0.3.0

fd083e0 [feature] add ability to reset collected emails (#11) by @kbond 58e3d20 [minor] refactor (#11) by @kbond

Full Change List

v0.2.0

2399e87 [feature][BC BREAK] emails persisted between reboots (closes #5) (#9) by @kbond 5892976 [feature] add TestEmail tag/metadata access/assertions (#10) by @kbond 14a87b8 [minor] use zenstruck/assert for assertions instead of phpunit (#6) by @kbond 8264478 [bug] profiler is only required in Symfony 5.2 (#8) by @kbond 660d812 [minor] adjust CI matrix (#8) by @kbond 4b13884 [minor] disable codecov pr annotations by @kbond eb20fea [minor] add Symfony 5.3/5.4-dev to CI test matrix by @kbond 8d76db6 [minor] update php-cs-fixer to v3 by @kbond 8ddb5a0 [minor] lock php-cs-fixer version in ci (bug) by @kbond ce39770 [minor] adjust codecov threshold by @kbond bd5eeb2 [minor] use SHELL_VERBOSITY to hide logs by @kbond bb025c9 [minor] Fix package name in README (#2) by @OskarStark 5550e61 [minor] fix test by @kbond

Full Change List

v0.1.0

Initial pre-release.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nqxcode/phpmorphy
boundwize/pyrameter
testo/facade
headercat/phpstan-extension-ide-helper
yosymfony/parser-utils
innmind/black-box
babenkoivan/elastic-migrations
babenkoivan/elastic-adapter
sandermuller/package-boost-php
sandermuller/boost-core
develia/commons
dmstr/symfony-system-resources-bundle
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
renatomarinho/laravel-page-speed
develia/geo-bundle
austinheap/laravel-database-encryption
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle