1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/usr/bin/env php <?php if ($_SERVER['argc'] != 4) { die( 'Usage: test.php <valid-user> <valid-domain> <valid-pass> '); } $valid_account = [ 'user' => $_SERVER['argv'][1], 'domain' => $_SERVER['argv'][2], 'password' => $_SERVER['argv'][3], ]; require_once __DIR__ . '/unit_test.php'; (new UnitTest($valid_account))->run();