--TEST-- Test a ZMQCert can be loaded. --SKIPIF-- save($certPath); $certCloneEquivalent = new ZMQCert($certPath); var_dump($certCloneEquivalent->equals($cert)); unlink($certPath); unlink($certPath . '_secret'); try { new ZMQCert('/path/to/cert'); } catch (ZMQCertException $e) { var_dump($e->getMessage()); } rmdir(BASE_CERT_DIR); --EXPECT-- bool(true) string(49) "Failed to load the certificate from /path/to/cert"