zenstruck / messenger-test

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

Problem with keeping static instances of TestTransport in TestTransportFactory #9

Closed kbond closed 3 years ago

kbond commented 3 years ago

The fix for #7 in #8 introduced a BC break.

(I believe) When the TestTransport's are created and added to a static array, they, and all their deps are locked. When these dependencies are used in subsequent kernel's (after rebooting), they are not the same instances.

I think reverting #8 and finding an alternative solution to #7 is required.