zenstruck / messenger-test

Assertions and helpers for testing your symfony/messenger queues.
MIT License
223 stars 15 forks source link

`TestTransport::send()`: don't always test serialization #33

Closed nikophil closed 2 years ago

nikophil commented 2 years ago

Hello,

it would be very nice to make conditional the test of the serialization when we send it to the transport. Maybe at the transport level, the same way it is done for catching the exceptions.

The reason is when you send messages to an external system, you don't need to know how to deserialize it.

I can provide a PR if needed.

kbond commented 2 years ago

This makes sense.

Maybe at the transport level, the same way it is done for catching the exceptions.

That's what I was thinking as well: test://?serialize=false

Sure, I'd appreciate a PR!