summaryrefslogtreecommitdiff
path: root/tests/jobs_ok.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/jobs_ok.php')
-rw-r--r--tests/jobs_ok.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/jobs_ok.php b/tests/jobs_ok.php
deleted file mode 100644
index 4e786d15..00000000
--- a/tests/jobs_ok.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-/**
- * @var Goridge\RelayInterface $relay
- */
-
-use Spiral\Goridge;
-use Spiral\RoadRunner;
-use Spiral\Goridge\StreamRelay;
-
-require __DIR__ . "/vendor/autoload.php";
-
-$rr = new RoadRunner\Worker(new StreamRelay(\STDIN, \STDOUT));
-
-while ($in = $rr->waitPayload()) {
- try {
- $ctx = json_decode($in->header, true);
- $headers = $ctx['headers'];
-
- $rr->respond(new RoadRunner\Payload(json_encode([
- 'type' => 0,
- 'data' => []
- ])));
- } catch (\Throwable $e) {
- $rr->error((string)$e);
- }
-}