summaryrefslogtreecommitdiff
path: root/tests/supervised.php
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-15 18:32:47 +0300
committerValery Piashchynski <[email protected]>2021-08-15 18:32:47 +0300
commit7469016ec237f4bedc23c2bae6a7fad52fc5faeb (patch)
treecf92bf06fd88a565bcd007211c939de0d261b4cd /tests/supervised.php
parent7b81e9e8cbe85a006bb0878d5bf4e22d0350041e (diff)
Update dockerfiles (use ubuntu instead of arch), replace heavy
memleak.php for the non-memory tests Signed-off-by: Valery Piashchynski <[email protected]>
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(""));
+}