2323
2424class ReadingTest extends SlackTokenDependentTest
2525{
26- public function testItWorksOnUserListWithCorrectToken ()
26+ public function testItWorksOnUserListWithCorrectToken (): void
2727 {
2828 $ client = $ this ->createClient ();
2929
@@ -35,7 +35,7 @@ public function testItWorksOnUserListWithCorrectToken()
3535 self ::assertGreaterThan (2 , \count ($ response ->getMembers ()));
3636 }
3737
38- public function testItThrowsExceptionOnUserListWithoutToken ()
38+ public function testItThrowsExceptionOnUserListWithoutToken (): void
3939 {
4040 $ client = $ this ->createClient ('' );
4141
@@ -45,7 +45,7 @@ public function testItThrowsExceptionOnUserListWithoutToken()
4545 $ client ->usersList ();
4646 }
4747
48- public function testItCanReadAConversationHistory ()
48+ public function testItCanReadAConversationHistory (): void
4949 {
5050 $ client = $ this ->createClient ();
5151
@@ -73,7 +73,7 @@ public function testItCanReadAConversationHistory()
7373 $ this ->assertTrue ($ hadAFileMessage , 'We expect a message in File in the history, cf \JoliCode\Slack\Tests\WritingTest::testItCanUploadFile ' );
7474 }
7575
76- public function testItCanGetTheImList ()
76+ public function testItCanGetTheImList (): void
7777 {
7878 $ client = $ this ->createClient ();
7979
@@ -83,7 +83,7 @@ public function testItCanGetTheImList()
8383 self ::assertNotEmpty ($ results ->getChannels ());
8484 }
8585
86- public function testItCanReadConversationsAndHydrateThem ()
86+ public function testItCanReadConversationsAndHydrateThem (): void
8787 {
8888 $ client = $ this ->createClient ();
8989
@@ -101,7 +101,7 @@ public function testItCanReadConversationsAndHydrateThem()
101101 }
102102 }
103103
104- public function testItCanGetConversationLocale ()
104+ public function testItCanGetConversationLocale (): void
105105 {
106106 $ client = $ this ->createClient ();
107107
@@ -118,7 +118,7 @@ public function testItCanGetConversationLocale()
118118 $ this ->assertNotNull ($ channel ->getLocale ());
119119 }
120120
121- public function testItCanSearchMessages ()
121+ public function testItCanSearchMessages (): void
122122 {
123123 $ client = $ this ->createClient ();
124124
0 commit comments