@@ -25,7 +25,7 @@ class StatsCommandTest extends TestCase
25
25
{
26
26
private StatsCommand $ command ;
27
27
28
- public function setUp (): void
28
+ protected function setUp (): void
29
29
{
30
30
$ messageCountableTransport = $ this ->createMock (MessageCountAwareInterface::class);
31
31
$ messageCountableTransport ->method ('getMessageCount ' )->willReturn (6 );
@@ -55,11 +55,11 @@ public function setUp(): void
55
55
'message_countable ' ,
56
56
'simple ' ,
57
57
'another_message_countable ' ,
58
- 'unexisting '
58
+ 'unexisting ' ,
59
59
]);
60
60
}
61
61
62
- public function testWithoutArgument (): void
62
+ public function testWithoutArgument ()
63
63
{
64
64
$ tester = new CommandTester ($ this ->command );
65
65
$ tester ->execute ([]);
@@ -71,7 +71,7 @@ public function testWithoutArgument(): void
71
71
$ this ->assertStringContainsString ('! [NOTE] Unable to get message count for the following transports: "simple". ' , $ display );
72
72
}
73
73
74
- public function testWithOneExistingMessageCountableTransport (): void
74
+ public function testWithOneExistingMessageCountableTransport ()
75
75
{
76
76
$ tester = new CommandTester ($ this ->command );
77
77
$ tester ->execute (['transport_names ' => ['message_countable ' ]]);
@@ -83,7 +83,7 @@ public function testWithOneExistingMessageCountableTransport(): void
83
83
$ this ->assertStringNotContainsString (' ! [NOTE] Unable to get message count for the following transports: "simple". ' , $ display );
84
84
}
85
85
86
- public function testWithMultipleExistingMessageCountableTransport (): void
86
+ public function testWithMultipleExistingMessageCountableTransport ()
87
87
{
88
88
$ tester = new CommandTester ($ this ->command );
89
89
$ tester ->execute (['transport_names ' => ['message_countable ' , 'another_message_countable ' ]]);
@@ -95,7 +95,7 @@ public function testWithMultipleExistingMessageCountableTransport(): void
95
95
$ this ->assertStringNotContainsString ('! [NOTE] Unable to get message count for the following transports: "simple". ' , $ display );
96
96
}
97
97
98
- public function testWithNotMessageCountableTransport (): void
98
+ public function testWithNotMessageCountableTransport ()
99
99
{
100
100
$ tester = new CommandTester ($ this ->command );
101
101
$ tester ->execute (['transport_names ' => ['simple ' ]]);
@@ -107,7 +107,7 @@ public function testWithNotMessageCountableTransport(): void
107
107
$ this ->assertStringContainsString ('! [NOTE] Unable to get message count for the following transports: "simple". ' , $ display );
108
108
}
109
109
110
- public function testWithNotExistingTransport (): void
110
+ public function testWithNotExistingTransport ()
111
111
{
112
112
$ tester = new CommandTester ($ this ->command );
113
113
$ tester ->execute (['transport_names ' => ['unexisting ' ]]);
0 commit comments