($args)
| 2 | |
| 3 | class 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 | |
| 22 | class Tests { |
no test coverage detected