@@ -26,7 +26,7 @@ public function setUp(): void
26
26
$ this ->loop = new StreamSelectLoop ();
27
27
}
28
28
29
- public function testPing ()
29
+ public function testPing (): void
30
30
{
31
31
$ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
32
32
@@ -38,7 +38,7 @@ public function testPing()
38
38
$ this ->assertEquals ('PONG ' , $ ret );
39
39
}
40
40
41
- public function testPingLazy ()
41
+ public function testPingLazy (): void
42
42
{
43
43
$ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
44
44
@@ -53,7 +53,7 @@ public function testPingLazy()
53
53
/**
54
54
* @doesNotPerformAssertions
55
55
*/
56
- public function testPingLazyWillNotBlockLoop ()
56
+ public function testPingLazyWillNotBlockLoop (): void
57
57
{
58
58
$ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
59
59
@@ -65,7 +65,7 @@ public function testPingLazyWillNotBlockLoop()
65
65
/**
66
66
* @doesNotPerformAssertions
67
67
*/
68
- public function testLazyClientWithoutCommandsWillNotBlockLoop ()
68
+ public function testLazyClientWithoutCommandsWillNotBlockLoop (): void
69
69
{
70
70
$ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
71
71
@@ -74,7 +74,7 @@ public function testLazyClientWithoutCommandsWillNotBlockLoop()
74
74
unset($ redis );
75
75
}
76
76
77
- public function testMgetIsNotInterpretedAsSubMessage ()
77
+ public function testMgetIsNotInterpretedAsSubMessage (): void
78
78
{
79
79
$ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
80
80
@@ -86,7 +86,7 @@ public function testMgetIsNotInterpretedAsSubMessage()
86
86
await ($ promise , $ this ->loop );
87
87
}
88
88
89
- public function testPipeline ()
89
+ public function testPipeline (): void
90
90
{
91
91
$ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
92
92
@@ -98,20 +98,21 @@ public function testPipeline()
98
98
await ($ promise , $ this ->loop );
99
99
}
100
100
101
- public function testInvalidCommand ()
101
+ public function testInvalidCommand (): void
102
102
{
103
103
$ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
104
104
$ promise = $ redis ->doesnotexist (1 , 2 , 3 );
105
105
106
106
if (method_exists ($ this , 'expectException ' )) {
107
107
$ this ->expectException ('Exception ' );
108
108
} else {
109
+ assert (method_exists ($ this , 'setExpectedException ' ));
109
110
$ this ->setExpectedException ('Exception ' );
110
111
}
111
112
await ($ promise , $ this ->loop );
112
113
}
113
114
114
- public function testMultiExecEmpty ()
115
+ public function testMultiExecEmpty (): void
115
116
{
116
117
$ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
117
118
$ redis ->multi ()->then ($ this ->expectCallableOnceWith ('OK ' ));
@@ -120,7 +121,7 @@ public function testMultiExecEmpty()
120
121
await ($ promise , $ this ->loop );
121
122
}
122
123
123
- public function testMultiExecQueuedExecHasValues ()
124
+ public function testMultiExecQueuedExecHasValues (): void
124
125
{
125
126
$ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
126
127
@@ -134,7 +135,7 @@ public function testMultiExecQueuedExecHasValues()
134
135
await ($ promise , $ this ->loop );
135
136
}
136
137
137
- public function testPubSub ()
138
+ public function testPubSub (): void
138
139
{
139
140
$ consumer = new RedisClient ($ this ->uri , null , $ this ->loop );
140
141
$ producer = new RedisClient ($ this ->uri , null , $ this ->loop );
@@ -155,7 +156,7 @@ public function testPubSub()
155
156
await ($ deferred ->promise (), $ this ->loop , 0.1 );
156
157
}
157
158
158
- public function testClose ()
159
+ public function testClose (): void
159
160
{
160
161
$ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
161
162
@@ -166,7 +167,7 @@ public function testClose()
166
167
$ redis ->get ('willBeRejectedRightAway ' )->then (null , $ this ->expectCallableOnce ());
167
168
}
168
169
169
- public function testCloseLazy ()
170
+ public function testCloseLazy (): void
170
171
{
171
172
$ redis = new RedisClient ($ this ->uri , null , $ this ->loop );
172
173
0 commit comments