summaryrefslogtreecommitdiff
path: root/tests/exec_ttl.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exec_ttl.php')
-rw-r--r--tests/exec_ttl.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/exec_ttl.php b/tests/exec_ttl.php
new file mode 100644
index 00000000..fb5c9df2
--- /dev/null
+++ b/tests/exec_ttl.php
@@ -0,0 +1,15 @@
+<?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));
+
+while($rr->waitPayload()){
+ sleep(3);
+ $rr->respond(new \Spiral\RoadRunner\Payload(""));
+}