summaryrefslogtreecommitdiff
path: root/tests/psr-worker-post.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/psr-worker-post.php')
-rw-r--r--tests/psr-worker-post.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/psr-worker-post.php b/tests/psr-worker-post.php
deleted file mode 100644
index 2f54af5b..00000000
--- a/tests/psr-worker-post.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-/**
- * @var Goridge\RelayInterface $relay
- */
-
-use Spiral\Goridge;
-use Spiral\RoadRunner;
-
-ini_set('display_errors', 'stderr');
-require __DIR__ . "/vendor/autoload.php";
-
-$worker = RoadRunner\Worker::create();
-$psr7 = new RoadRunner\Http\PSR7Worker(
- $worker,
- new \Nyholm\Psr7\Factory\Psr17Factory(),
- new \Nyholm\Psr7\Factory\Psr17Factory(),
- new \Nyholm\Psr7\Factory\Psr17Factory()
-);
-
-while ($req = $psr7->waitRequest()) {
- try {
- $resp = new \Nyholm\Psr7\Response();
- $resp->getBody()->write((string) $req->getBody());
-
- $psr7->respond($resp);
- } catch (\Throwable $e) {
- $psr7->getWorker()->error((string)$e);
- }
-}