summaryrefslogtreecommitdiff
path: root/tests/slow-client.php
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-05-29 13:03:34 +0300
committerWolfy-J <[email protected]>2018-05-29 13:03:34 +0300
commitb8bc792b263a3891e125757a35cc563bb85f1a0b (patch)
treef7a9e6f2568220491a26f6544e4acf0ed62012bb /tests/slow-client.php
parent50f820833eeef8518b3b978b33c6f20391225162 (diff)
nested observers
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