summaryrefslogtreecommitdiff
path: root/tests/raw-error.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/raw-error.php')
-rw-r--r--tests/raw-error.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/raw-error.php b/tests/raw-error.php
new file mode 100644
index 00000000..3caf46c5
--- /dev/null
+++ b/tests/raw-error.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * @var Goridge\RelayInterface $relay
+ */
+use Spiral\Goridge;
+use Spiral\RoadRunner;
+
+ini_set('display_errors', 'stderr');
+require __DIR__ . "/vendor/autoload.php";
+
+$worker = new RoadRunner\Worker(new Goridge\StreamRelay(STDIN, STDOUT));
+$psr7 = new RoadRunner\Http\PSR7Worker(
+ $worker,
+ new \Nyholm\Psr7\Factory\Psr17Factory(),
+ new \Nyholm\Psr7\Factory\Psr17Factory(),
+ new \Nyholm\Psr7\Factory\Psr17Factory()
+);
+
+error_log('{"field": "value"}');
+
+while ($req = $psr7->waitRequest()) {}