zenstruck / messenger-test

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

feat: enable messages collection #55

Closed nikophil closed 1 year ago

nikophil commented 1 year ago

fixes #24

this also fixes a BC break #40 introduced

first, this PR adds tests for the original problem #40 fixed in order to not validate there is no regression on this topic. This is the main purpose of both classes in Zenstruck\Messenger\Test\Tests\TransportsAreResetCorrectly and the new test suite in phpunit.xml. I had to ensure a test without the trait runs directly before assert_transports_are_reset_after_a_test_which_does_not_use_trait()

EDIT: because I had some errors in CI due to sf 4.4, I've modified minimum req for php and Symfony :innocent: