@@ -113,47 +113,6 @@ public function testPubSub() {
113
113
$ this ->assertFalse ($ this ->redis ->pubsub ("numsub " , "not-an-array " ));
114
114
}
115
115
116
- // Run some simple tests against the PUBSUB command. This is problematic, as we
117
- // can't be sure what's going on in the instance, but we can do some things.
118
- public function testPubSub () {
119
- // Only available since 2.8.0
120
- if (version_compare ($ this ->version , "2.8.0 " , "lt " )) {
121
- $ this ->markTestSkipped ();
122
- return ;
123
- }
124
-
125
- // PUBSUB CHANNELS ...
126
- $ result = $ this ->redis ->pubsub ("channels " , "* " );
127
- $ this ->assertTrue (is_array ($ result ));
128
- $ result = $ this ->redis ->pubsub ("channels " );
129
- $ this ->assertTrue (is_array ($ result ));
130
-
131
- // PUBSUB NUMSUB
132
-
133
- $ c1 = uniqid () . '- ' . rand (1 ,100 );
134
- $ c2 = uniqid () . '- ' . rand (1 ,100 );
135
-
136
- $ result = $ this ->redis ->pubsub ("numsub " , Array ($ c1 , $ c2 ));
137
-
138
- // Should get an array back, with two elements
139
- $ this ->assertTrue (is_array ($ result ));
140
- $ this ->assertEquals (count ($ result ), 2 );
141
-
142
- // Make sure the elements are correct, and have zero counts
143
- foreach (Array ($ c1 ,$ c2 ) as $ channel ) {
144
- $ this ->assertTrue (isset ($ result [$ channel ]));
145
- $ this ->assertEquals ($ result [$ channel ], "0 " );
146
- }
147
-
148
- // PUBSUB NUMPAT
149
- $ result = $ this ->redis ->pubsub ("numpat " );
150
- $ this ->assertTrue (is_int ($ result ));
151
-
152
- // Invalid calls
153
- $ this ->assertFalse ($ this ->redis ->pubsub ("notacommand " ));
154
- $ this ->assertFalse ($ this ->redis ->pubsub ("numsub " , "not-an-array " ));
155
- }
156
-
157
116
public function testBitsets () {
158
117
159
118
$ this ->redis ->delete ('key ' );
0 commit comments