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