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

Messenger Test Laravel Package

zenstruck/messenger-test

Test helpers and assertions for symfony/messenger. Provides a TestTransport that intercepts and round-trips messages, lets you inspect queued items, assert counts/contents and processing states (acked/rejected), and optionally process queued messages in Kernel/Web tests.

View on GitHub
Deep Wiki
Context7
v1.15.0

26ffd01 feat: process a specific message from the queue (#106) by @podoko 5bc11ad fix: prevent TestTransport from increasing phpunit's assertions count (#104) by @podoko e3a1d7c minor: remove deprec (#110) by @nikophil 67c0e7a chore: upgrade PHPUnit (#107) by @nikophil 5557134 docs: fix envelope typo (#102) by @beau-ottens, beau-ottens

Full Change List

v1.14.0

842948e feat: allow enabling / disabling retries manually (#101) by @tunterreitmeier

Full Change List

v1.13.0

a2fef7e chore: update CI (#100) by @kbond 67f1965 chore: upgrade PHPStan to 2.x (#100) by @kbond 608fc78 feat: drop Symfony 5.4 (#100) by @kbond 53d294a chore: normalize CI (#100) by @kbond

Full Change List

v1.12.0

67347f7 chore: support Symfony 8 (#99) by @nikophil

Full Change List

v1.11.1

7fae735 minor: throw exceptions on uninitialized transport (#96) by @kbond 64a93e8 minor: fix flaky test (#96) by @kbond

Full Change List

v1.11.0

d9d711b Reset TestTransport on ensureKernelShutdown (#90) by @HypeMC 36329a1 chore: upgrade CI matrix (#92) by @nikophil 1f78317 docs: Add installation step to add the bundle in the config (#85) by @dazz, @kbond

Full Change List

v1.10.0

07ea68a feat: handler use deserialization version of the message with test_serialization=true #86 (#87) by @jaugustin a33dc20 feat: have TestTransport additional receiver interfaces (#84) by @kbond 7164fce fix: allows to use options configuration (#80) by @aegypius

Full Change List

v1.9.3

d4a8525 minor: small cleanup (#76) by @kbond b91a87f minor: fix sca (#76) by @kbond 82cf50b minor: fix typo (#76) by @kbond 9f31c86 fix: handle DelayStamp in the past (#75) by @benito103e

Full Change List

v1.9.2

d1c4d37 fix: add attributes to support PHPUnit 10 + 11 (#73) by @mickverm 99856ba docs: add return types to arrow functions (#70) by @carusogabriel

Full Change List

v1.9.1

baf5893 fix: set support_delay_stamp to false by default (#69) by @nikophil

Full Change List

v1.9.0

0554e7c feat: Symfony 7 support (#67) by @kbond

Full Change List

v1.8.0

71d66ed feat: support delay stamp and require php 8.1 (#66) by @nikophil, @kbond

Full Change List

v1.7.3

68b535a minor: Add conditional return type for EnvelopeCollection::messages (#64) by @norkunas

Full Change List

v1.7.2

2e51d27 fix: always collect messages in TestTransport::$queue (#62) by @nikophil

Full Change List

v1.7.1

6a179b6 fix(EnvelopeCollection): return type for psalm and method final (#60) by @flohw

Full Change List

v1.7.0

61e8802 feat: Make bus queriable (#54) by @flohw 823f155 fix(ci): prevent running fixcs/sync-with-template on forks (#57) by @kbond bfa2191 fix(tests): phpunit deprecation (#57) by @kbond

Full Change List

v1.6.1

12c8b18 fix: reinit TestTransport before each test (#56) by @nikophil

Full Change List

v1.6.0

fb0bb0c feat: enable messages collection (#55) by @nikophil 7fb455d fix(ci): add token by @kbond 508f890 chore(ci): fix by @kbond 416f086 fix(test): deprecation (#53) by @kbond 885fbd8 ci: adjust (#53) by @kbond

Full Change List

v1.5.1

56f667c [bug] ignore receiver detached from transport (#52) by @alli83

Full Change List

v1.5.0

0fe8aef [feature] allow TestTransport::send() to accept object|array (#50) by @kbond

Full Change List

v1.4.2

4b4566d [bug] fix processing empty queue (#48) by @kbond 6f79b43 [doc] add troubleshooting section and detached entities workaround (#46) by @kbond 8efb392 [doc] update config to new when@test notation (#46) by @kbond 8253ec9 [minor] simplify ci config (#45) by @kbond ea298ec [minor] remove scrutinizer (#45) by @kbond 2a1a944 [doc] fix: typo in README.md (#42) by @romainallanot

Full Change List

v1.4.1

a70c269 [bug] reset transport before tests (#40) by @rodnaph bb97995 [minor] add conflict for symfony/framework-bundle 5.4.5 & 6.0.5 (#39) by @kbond 5a5e40c [minor] fix typehint by @kbond 5932352 [minor] add static code analysis with phpstan (#38) by @kbond

Full Change List

v1.4.0

8a434ad [feature] add ability to enable retries (#37) by @kbond 1381f27 [bug] disable retries (#37) by @kbond

Full Change List

v1.3.0

13376bb [minor] give a name to the transport in the Worker (#34) by @nikophil 97fb25c [feature] add test_serialization option in dsn (#35) by @nikophil cf2ec7f [bug] prevent infinite loop in unblock mode (#36) by @nikophil

Full Change List

v1.2.1

8aac8d0 [minor] allow "0" for EnvelopeCollection::assertContains() (#30) by @kbond

Full Change List

v1.2.0

b02e861 [feature] add EnvelopeCollection::back() (#28) by @kbond d649463 [ci] use reusable workflows (#27) by @kbond

Full Change List

v1.1.0

e54feb3 [feature] process messages with app's event dispatcher (#26) by @kbond 9867e39 [minor] refactor service definitions (#25) by @kbond 1499a57 [minor] add .editorconfig (#25) by @kbond 84442ac [minor] test on Symfony 5.4 (#22) by @kbond

Full Change List

v1.0.0

d747cc0 [bug] fix test (#19) by @kbond 9148c70 [minor] use zenstruck/assert for assertions instead of phpunit (#19) by @kbond 560e559 [minor] disable CI tests for Symfony 5.4 (#21) by @kbond

Full Change List

v0.6.0
  • ebb927c [minor] allow Symfony 6 (#20) (Kevin Bond)
v0.5.0
  • 4ecaeaa [feature] add TestTransport::processOrFail() to fail if queue is empty (Kevin Bond)
  • bc2f7cc [BC BREAK] revert failing during process() if no messages on queue (Kevin Bond)
v0.4.0
  • 88b846a [minor] rename TestTransport::$sent to $dispatched (Kevin Bond)
  • 854901a [BC BREAK] make TestTransport::process() recursive (#17) (Kevin Bond)
  • 9b0f6c7 [BC BREAK] rename TestTransport::sent() to dispatched() (#16) (Kevin Bond)
  • a9c1a9c [minor] allow manually sending message with $this->messenger()->send() (#14) (Kevin Bond)
  • 804f4e0 [minor] disable codecov pr annotations (Kevin Bond)
  • 1b7f9ac [minor] use 5.4@dev for @dev test (Kevin Bond)
  • 15e6432 [minor] add symfony 5.3 to test matrix (Kevin Bond)
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.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor