($ip, $port, $user, $password)
| 24 | private $tests = []; |
| 25 | |
| 26 | public function connect($ip, $port, $user, $password) { |
| 27 | try { |
| 28 | $url = "pgsql:host=$ip;port=$port;dbname=postgres"; |
| 29 | $this->conn = new PDO($url, $user, $password); |
| 30 | } catch (PDOException $e) { |
| 31 | throw new RuntimeException($e->getMessage()); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | public function disconnect() { |
| 36 | $this->conn = null; |
no outgoing calls
no test coverage detected