예제 #1
0
 /**
  * @group disconnected
  */
 public function testConstructorWithNullAndNullArguments()
 {
     $client = new Client(null, null);
     $connection = $client->getConnection();
     $this->assertInstanceOf('Predis\\Async\\Connection\\ConnectionInterface', $connection);
     $parameters = $connection->getParameters();
     $this->assertSame($parameters->host, '127.0.0.1');
     $this->assertSame($parameters->port, 6379);
     $options = $client->getOptions();
     $this->assertSame($options->profile->getVersion(), ServerProfile::getDefault()->getVersion());
     $this->assertFalse($client->isConnected());
 }