summaryrefslogtreecommitdiff
path: root/tests/slow-client.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/slow-client.php')
-rw-r--r--tests/slow-client.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/slow-client.php b/tests/slow-client.php
deleted file mode 100644
index f09142b5..00000000
--- a/tests/slow-client.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-use Spiral\Goridge;
-
-ini_set('display_errors', 'stderr');
-require dirname(__DIR__) . "/vendor/autoload.php";
-
-if (count($argv) < 3) {
- die("need 2 arguments");
-}
-
-list($test, $goridge, $bootDelay, $shutdownDelay) = [$argv[1], $argv[2], $argv[3], $argv[4]];
-
-switch ($goridge) {
- case "pipes":
- $relay = new Goridge\StreamRelay(STDIN, STDOUT);
- break;
-
- case "tcp":
- $relay = new Goridge\SocketRelay("localhost", 9007);
- break;
-
- case "unix":
- $relay = new Goridge\SocketRelay(
- "sock.unix",
- null,
- Goridge\SocketRelay::SOCK_UNIX
- );
-
- break;
-
- default:
- die("invalid protocol selection");
-}
-
-usleep($bootDelay * 1000);
-require_once sprintf("%s/%s.php", __DIR__, $test);
-usleep($shutdownDelay * 1000); \ No newline at end of file