/**
  * Connect redis client to the server
  */
 protected function connect()
 {
     $this->client = new Client(array('host' => $this->instance->getHost(), 'port' => $this->instance->getPort()));
 }
示例#2
0
 /**
  * @covers Ringo\PhpRedmon\Model\Instance::getHost
  * @covers Ringo\PhpRedmon\Model\Instance::setHost
  */
 public function testGetHost()
 {
     $this->assertEmpty($this->object->getHost());
     $this->object->setHost("localhost");
     $this->assertEquals("localhost", $this->object->getHost());
 }