public function testConnectionCert() { try { $conn = new sapnwrfc($this->config); $ticket = $conn->get_sso_ticket(); echo "ticket: {$ticket} \n"; } catch (Exception $e) { echo "Exception type: " . $e . "\n"; echo "Exception key: " . $e->key . "\n"; echo "Exception code: " . $e->code . "\n"; echo "Exception message: " . $e->getMessage(); throw new Exception('Connection failed.'); } }