host = $host; $this->port = $port; } /** * Perform the check * * @see \ZendDiagnostics\Check\CheckInterface::check() * @return Failure|Success */ public function check() { if (!class_exists('Predis\Client')) { return new Failure('Predis is not installed'); } $client = new Client(array( 'host' => $this->host, 'port' => $this->port, )); $client->ping(); return new Success(); } }