Beispiel #1
0
 function testConnection_Alias()
 {
     $connection1 = new \Predis\TcpConnection(RC::getConnectionParameters());
     $this->assertNull($connection1->getParameters()->alias);
     $args = array_merge(RC::getConnectionArguments(), array('alias' => 'servername'));
     $connection2 = new \Predis\TcpConnection(new \Predis\ConnectionParameters($args));
     $this->assertEquals('servername', $connection2->getParameters()->alias);
 }