summaryrefslogtreecommitdiff
path: root/tests/supervised.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/supervised.php')
-rw-r--r--tests/supervised.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/supervised.php b/tests/supervised.php
new file mode 100644
index 00000000..74f8c994
--- /dev/null
+++ b/tests/supervised.php
@@ -0,0 +1,14 @@
+<?php
+
+declare(strict_types=1);
+
+use Spiral\Goridge\StreamRelay;
+use Spiral\RoadRunner\Worker as RoadRunner;
+
+require __DIR__ . "/vendor/autoload.php";
+
+$rr = new RoadRunner(new StreamRelay(\STDIN, \STDOUT));
+$mem = '';
+while($rr->waitPayload()){
+ $rr->respond(new \Spiral\RoadRunner\Payload(""));
+}