/** * @group disconnected */ public function testExecuteCommandOnEachNodeButConnectionSingle() { $ping = ServerProfile::getDefault()->createCommand('ping', array()); $connection = $this->getMock('Predis\\Network\\IConnectionSingle'); $connection->expects($this->once())->method('executeCommand')->with($ping)->will($this->returnValue(true)); $client = new Client($connection); $this->assertSame(array(true), $client->executeCommandOnShards($ping)); }