File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ public function getRetryCount(): int
40
40
*
41
41
* @internal
42
42
*/
43
- public function getSenderClassOrAlias (): int
43
+ public function getSenderClassOrAlias (): string
44
44
{
45
- return $ this ->retryCount ;
45
+ return $ this ->senderClassOrAlias ;
46
46
}
47
47
48
48
public function shouldRedeliverToSender (string $ senderClass , ?string $ senderAlias ): bool
Original file line number Diff line number Diff line change @@ -31,4 +31,11 @@ public function testShouldRedeliverToSenderWithoutAlias()
31
31
$ this ->assertTrue ($ stampToRedeliverToSender1 ->shouldRedeliverToSender ('App\Sender1 ' , null ));
32
32
$ this ->assertFalse ($ stampToRedeliverToSender1 ->shouldRedeliverToSender ('App\Sender2 ' , null ));
33
33
}
34
+
35
+ public function testGetters ()
36
+ {
37
+ $ stamp = new RedeliveryStamp (10 , 'sender_alias ' );
38
+ $ this ->assertSame (10 , $ stamp ->getRetryCount ());
39
+ $ this ->assertSame ('sender_alias ' , $ stamp ->getSenderClassOrAlias ());
40
+ }
34
41
}
You can’t perform that action at this time.
0 commit comments