summaryrefslogtreecommitdiff
path: root/tests/psr-worker.php
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-12-15 11:32:03 +0300
committerWolfy-J <[email protected]>2020-12-15 11:32:03 +0300
commitfec111c55ce65640e22f134d2e249a2b8e54acf4 (patch)
tree53894604360fac86b1a9770f78c3b55020633f50 /tests/psr-worker.php
parent38892b66030e085ab78096df292f5cb964830fe2 (diff)
- fixing tests
Diffstat (limited to 'tests/psr-worker.php')
-rw-r--r--tests/psr-worker.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/psr-worker.php b/tests/psr-worker.php
index b5090d46..31bd7acf 100644
--- a/tests/psr-worker.php
+++ b/tests/psr-worker.php
@@ -9,15 +9,15 @@ ini_set('display_errors', 'stderr');
require dirname(__DIR__) . "/vendor/autoload.php";
$worker = new RoadRunner\Worker(new Goridge\StreamRelay(STDIN, STDOUT));
-$psr7 = new RoadRunner\PSR7Client($worker);
+$psr7 = new RoadRunner\Http\PSR7Worker($worker);
-while ($req = $psr7->acceptRequest()) {
+while ($req = $psr7->waitRequest()) {
try {
- $resp = new \Zend\Diactoros\Response();
+ $resp = new \Nyholm\Psr7\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
+}