MCPcopy Create free account
hub / github.com/apecloud/myduckserver / PGTest

Class PGTest

compatibility/pg/php/pg_test.php:3–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1<?php
2
3class PGTest {
4 public static function main($args) {
5 if (count($args) != 5) {
6 echo "Usage: php " . $args[0] . " <ip> <port> <user> <password> <testFile>\n";
7 exit(1);
8 }
9
10 $tests = new Tests();
11 $tests->connect($args[0], intval($args[1]), $args[2], $args[3]);
12 $tests->readTestsFromFile($args[4]);
13
14 if (!$tests->runTests()) {
15 $tests->disconnect();
16 exit(1);
17 }
18 $tests->disconnect();
19 }
20}
21
22class Tests {
23 private $conn;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected