@@ -26,7 +26,7 @@ public function setUp(): void
2626 $ this ->loop = new StreamSelectLoop ();
2727 }
2828
29- public function testPing ()
29+ public function testPing (): void
3030 {
3131 $ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
3232
@@ -38,7 +38,7 @@ public function testPing()
3838 $ this ->assertEquals ('PONG ' , $ ret );
3939 }
4040
41- public function testPingLazy ()
41+ public function testPingLazy (): void
4242 {
4343 $ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
4444
@@ -53,7 +53,7 @@ public function testPingLazy()
5353 /**
5454 * @doesNotPerformAssertions
5555 */
56- public function testPingLazyWillNotBlockLoop ()
56+ public function testPingLazyWillNotBlockLoop (): void
5757 {
5858 $ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
5959
@@ -65,7 +65,7 @@ public function testPingLazyWillNotBlockLoop()
6565 /**
6666 * @doesNotPerformAssertions
6767 */
68- public function testLazyClientWithoutCommandsWillNotBlockLoop ()
68+ public function testLazyClientWithoutCommandsWillNotBlockLoop (): void
6969 {
7070 $ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
7171
@@ -74,7 +74,7 @@ public function testLazyClientWithoutCommandsWillNotBlockLoop()
7474 unset($ redis );
7575 }
7676
77- public function testMgetIsNotInterpretedAsSubMessage ()
77+ public function testMgetIsNotInterpretedAsSubMessage (): void
7878 {
7979 $ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
8080
@@ -86,7 +86,7 @@ public function testMgetIsNotInterpretedAsSubMessage()
8686 await ($ promise , $ this ->loop );
8787 }
8888
89- public function testPipeline ()
89+ public function testPipeline (): void
9090 {
9191 $ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
9292
@@ -98,20 +98,21 @@ public function testPipeline()
9898 await ($ promise , $ this ->loop );
9999 }
100100
101- public function testInvalidCommand ()
101+ public function testInvalidCommand (): void
102102 {
103103 $ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
104104 $ promise = $ redis ->doesnotexist (1 , 2 , 3 );
105105
106106 if (method_exists ($ this , 'expectException ' )) {
107107 $ this ->expectException ('Exception ' );
108108 } else {
109+ assert (method_exists ($ this , 'setExpectedException ' ));
109110 $ this ->setExpectedException ('Exception ' );
110111 }
111112 await ($ promise , $ this ->loop );
112113 }
113114
114- public function testMultiExecEmpty ()
115+ public function testMultiExecEmpty (): void
115116 {
116117 $ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
117118 $ redis ->multi ()->then ($ this ->expectCallableOnceWith ('OK ' ));
@@ -120,7 +121,7 @@ public function testMultiExecEmpty()
120121 await ($ promise , $ this ->loop );
121122 }
122123
123- public function testMultiExecQueuedExecHasValues ()
124+ public function testMultiExecQueuedExecHasValues (): void
124125 {
125126 $ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
126127
@@ -134,7 +135,7 @@ public function testMultiExecQueuedExecHasValues()
134135 await ($ promise , $ this ->loop );
135136 }
136137
137- public function testPubSub ()
138+ public function testPubSub (): void
138139 {
139140 $ consumer = new RedisClient ($ this ->uri , null , $ this ->loop );
140141 $ producer = new RedisClient ($ this ->uri , null , $ this ->loop );
@@ -155,7 +156,7 @@ public function testPubSub()
155156 await ($ deferred ->promise (), $ this ->loop , 0.1 );
156157 }
157158
158- public function testClose ()
159+ public function testClose (): void
159160 {
160161 $ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
161162
@@ -166,7 +167,7 @@ public function testClose()
166167 $ redis ->get ('willBeRejectedRightAway ' )->then (null , $ this ->expectCallableOnce ());
167168 }
168169
169- public function testCloseLazy ()
170+ public function testCloseLazy (): void
170171 {
171172 $ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
172173
0 commit comments