/**
  * 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::getPort
  * @todo   Implement testGetPort().
  */
 public function testGetPort()
 {
     $this->assertEmpty($this->object->getPort());
     $this->object->setPort("1234");
     $this->assertEquals("1234", $this->object->getPort());
 }