コード例 #1
0
ファイル: ClientTest.php プロジェクト: keneanung/gw2spidy
 /**
  * @group disconnected
  */
 public function testConstructorWithClusterArgument()
 {
     $cluster = new PredisCluster();
     $factory = new ConnectionFactory();
     $factory->createCluster($cluster, array('tcp://localhost:7000', 'tcp://localhost:7001'));
     $client = new Client($cluster);
     $this->assertInstanceOf('Predis\\Network\\IConnectionCluster', $client->getConnection());
     $this->assertSame($cluster, $client->getConnection());
 }