66
77use Clue \React \Redis \Factory ;
88
9- use Clue \React \Redis \Client ;
9+ use Clue \React \Redis \StreamingClient ;
1010
1111class FunctionalTest extends TestCase
1212{
@@ -40,10 +40,10 @@ public function testPing()
4040
4141 /**
4242 *
43- * @param Client $client
43+ * @param StreamingClient $client
4444 * @depends testPing
4545 */
46- public function testPipeline (Client $ client )
46+ public function testPipeline (StreamingClient $ client )
4747 {
4848 $ this ->assertFalse ($ client ->isBusy ());
4949
@@ -61,10 +61,10 @@ public function testPipeline(Client $client)
6161
6262 /**
6363 *
64- * @param Client $client
64+ * @param StreamingClient $client
6565 * @depends testPipeline
6666 */
67- public function testInvalidCommand (Client $ client )
67+ public function testInvalidCommand (StreamingClient $ client )
6868 {
6969 $ client ->doesnotexist (1 , 2 , 3 )->then ($ this ->expectCallableNever ());
7070
@@ -75,10 +75,10 @@ public function testInvalidCommand(Client $client)
7575
7676 /**
7777 *
78- * @param Client $client
78+ * @param StreamingClient $client
7979 * @depends testInvalidCommand
8080 */
81- public function testMultiExecEmpty (Client $ client )
81+ public function testMultiExecEmpty (StreamingClient $ client )
8282 {
8383 $ client ->multi ()->then ($ this ->expectCallableOnce ('OK ' ));
8484 $ client ->exec ()->then ($ this ->expectCallableOnce (array ()));
@@ -90,10 +90,10 @@ public function testMultiExecEmpty(Client $client)
9090
9191 /**
9292 *
93- * @param Client $client
93+ * @param StreamingClient $client
9494 * @depends testMultiExecEmpty
9595 */
96- public function testMultiExecQueuedExecHasValues (Client $ client )
96+ public function testMultiExecQueuedExecHasValues (StreamingClient $ client )
9797 {
9898 $ client ->multi ()->then ($ this ->expectCallableOnce ('OK ' ));
9999 $ client ->set ('b ' , 10 )->then ($ this ->expectCallableOnce ('QUEUED ' ));
@@ -191,7 +191,7 @@ protected function createClientResponse($response)
191191
192192 $ stream = new Stream ($ fp , self ::$ loop );
193193
194- return new Client ($ stream );
194+ return new StreamingClient ($ stream );
195195 }
196196
197197 protected function createServer ($ response )
@@ -201,7 +201,7 @@ protected function createServer($response)
201201
202202 }
203203
204- protected function waitFor (Client $ client )
204+ protected function waitFor (StreamingClient $ client )
205205 {
206206 $ this ->assertTrue ($ client ->isBusy ());
207207
0 commit comments