summaryrefslogtreecommitdiff
path: root/plugins/gzip
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-15 10:26:45 +0300
committerValery Piashchynski <[email protected]>2020-12-15 10:26:45 +0300
commitcd5a6098b7d671c0fa980f0923f8d6d3733faf68 (patch)
tree4dcb4956d1839c347a5f9e5f4590969ad47861f0 /plugins/gzip
parent3cf93d96d24201758fb5c23529af90050c3914cb (diff)
Update worker_watcher, psr-worker for gzip moved to the tests
Diffstat (limited to 'plugins/gzip')
-rw-r--r--plugins/gzip/tests/configs/.rr-http-withGzip.yaml2
-rw-r--r--plugins/gzip/tests/psr-worker.php23
2 files changed, 1 insertions, 24 deletions
diff --git a/plugins/gzip/tests/configs/.rr-http-withGzip.yaml b/plugins/gzip/tests/configs/.rr-http-withGzip.yaml
index b91a9aad..38fdfe47 100644
--- a/plugins/gzip/tests/configs/.rr-http-withGzip.yaml
+++ b/plugins/gzip/tests/configs/.rr-http-withGzip.yaml
@@ -1,5 +1,5 @@
server:
- command: "php psr-worker.php"
+ command: "php ../../../tests/psr-worker.php"
user: ""
group: ""
env:
diff --git a/plugins/gzip/tests/psr-worker.php b/plugins/gzip/tests/psr-worker.php
deleted file mode 100644
index ed936bde..00000000
--- a/plugins/gzip/tests/psr-worker.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-/**
- * @var Goridge\RelayInterface $relay
- */
-use Spiral\Goridge;
-use Spiral\RoadRunner;
-
-ini_set('display_errors', 'stderr');
-require dirname(__DIR__) . "/../../vendor_php/autoload.php";
-
-$worker = new RoadRunner\Worker(new Goridge\StreamRelay(STDIN, STDOUT));
-$psr7 = new RoadRunner\PSR7Client($worker);
-
-while ($req = $psr7->acceptRequest()) {
- try {
- $resp = new \Zend\Diactoros\Response();
- $resp->getBody()->write(str_repeat("hello world", 1000));
-
- $psr7->respond($resp);
- } catch (\Throwable $e) {
- $psr7->getWorker()->error((string)$e);
- }
-} \ No newline at end of file