Exemplo n.º 1
0
 /**
  * Connect redis client to the server
  */
 protected function connect()
 {
     $this->client = new Client(array('host' => $this->instance->getHost(), 'port' => $this->instance->getPort()));
 }
Exemplo n.º 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());
 }