|
@@ -129,6 +129,19 @@ class PipelineTest extends PredisTestCase
|
|
|
$this->assertSame(array($error, $error), $pipeline->execute());
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @group disconnected
|
|
|
+ */
|
|
|
+ public function testExecuteReturnsPipelineForFluentInterface()
|
|
|
+ {
|
|
|
+ $profile = Profile\Factory::getDefault();
|
|
|
+ $connection = $this->getMock('Predis\Connection\SingleConnectionInterface');
|
|
|
+ $pipeline = new Pipeline(new Client($connection));
|
|
|
+ $command = $profile->createCommand('echo', array('one'));
|
|
|
+
|
|
|
+ $this->assertSame($pipeline, $pipeline->executeCommand($command));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @group disconnected
|
|
|
*/
|