16
16
17
17
final class LinkedInTransportTest extends TestCase
18
18
{
19
- public function testToString (): void
19
+ public function testToString ()
20
20
{
21
21
$ this ->assertSame (sprintf ('linkedin://host.test ' ), (string ) $ this ->getTransport ());
22
22
}
23
23
24
- public function testSupportsChatMessage (): void
24
+ public function testSupportsChatMessage ()
25
25
{
26
26
$ transport = $ this ->getTransport ();
27
27
28
28
$ this ->assertTrue ($ transport ->supports (new ChatMessage ('testChatMessage ' )));
29
29
$ this ->assertFalse ($ transport ->supports ($ this ->createMock (MessageInterface::class)));
30
30
}
31
31
32
- public function testSendNonChatMessageThrows (): void
32
+ public function testSendNonChatMessageThrows ()
33
33
{
34
34
$ this ->expectException (LogicException::class);
35
35
@@ -38,7 +38,7 @@ public function testSendNonChatMessageThrows(): void
38
38
$ transport ->send ($ this ->createMock (MessageInterface::class));
39
39
}
40
40
41
- public function testSendWithEmptyArrayResponseThrows (): void
41
+ public function testSendWithEmptyArrayResponseThrows ()
42
42
{
43
43
$ this ->expectException (TransportException::class);
44
44
@@ -59,7 +59,7 @@ public function testSendWithEmptyArrayResponseThrows(): void
59
59
$ transport ->send (new ChatMessage ('testMessage ' ));
60
60
}
61
61
62
- public function testSendWithErrorResponseThrows (): void
62
+ public function testSendWithErrorResponseThrows ()
63
63
{
64
64
$ this ->expectException (TransportException::class);
65
65
$ this ->expectExceptionMessage ('testErrorCode ' );
@@ -82,7 +82,7 @@ public function testSendWithErrorResponseThrows(): void
82
82
$ transport ->send (new ChatMessage ('testMessage ' ));
83
83
}
84
84
85
- public function testSendWithOptions (): void
85
+ public function testSendWithOptions ()
86
86
{
87
87
$ message = 'testMessage ' ;
88
88
@@ -126,7 +126,7 @@ public function testSendWithOptions(): void
126
126
$ transport ->send (new ChatMessage ($ message ));
127
127
}
128
128
129
- public function testSendWithNotification (): void
129
+ public function testSendWithNotification ()
130
130
{
131
131
$ message = 'testMessage ' ;
132
132
@@ -174,7 +174,7 @@ public function testSendWithNotification(): void
174
174
$ transport ->send ($ chatMessage );
175
175
}
176
176
177
- public function testSendWithInvalidOptions (): void
177
+ public function testSendWithInvalidOptions ()
178
178
{
179
179
$ this ->expectException (LogicException::class);
180
180
0 commit comments