| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function theFailedItemsExistInTheFailureQueue() |
||
| 30 | { |
||
| 31 | $throwable = new \Exception('error'); |
||
| 32 | $envelope = new Envelope(new ContentPushMessage(1, 'some content')); |
||
| 33 | $flattenedException = class_exists(FlattenException::class) ? FlattenException::createFromThrowable($throwable) : null; |
||
| 34 | $envelope = $envelope->with( |
||
| 35 | new SentToFailureTransportStamp('messenger.transport.failed'), |
||
| 36 | new DelayStamp(0), |
||
| 37 | new RedeliveryStamp(0, $throwable->getMessage(), $flattenedException) |
||
| 38 | ); |
||
| 39 | |||
| 40 | $this->failureTransport->send($envelope); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |