From 546b350a35b35af9eecb61aab5f7bcbbaffd449f Mon Sep 17 00:00:00 2001 From: Anton Titov Date: Thu, 18 Feb 2021 16:44:10 +0300 Subject: fix(php): PHP tests to use latest signatures (#550) --- tests/plugins/server/socket.php | 2 +- tests/plugins/server/tcp.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/plugins/server') diff --git a/tests/plugins/server/socket.php b/tests/plugins/server/socket.php index 3159c445..f90dda6f 100644 --- a/tests/plugins/server/socket.php +++ b/tests/plugins/server/socket.php @@ -18,7 +18,7 @@ $rr = new RoadRunner\Worker($relay); while ($in = $rr->waitPayload()) { try { - $rr->send((string)$in->body); + $rr->respond(new RoadRunner\Payload((string)$in->body)); } catch (\Throwable $e) { $rr->error((string)$e); } diff --git a/tests/plugins/server/tcp.php b/tests/plugins/server/tcp.php index 88c49848..873f25b2 100644 --- a/tests/plugins/server/tcp.php +++ b/tests/plugins/server/tcp.php @@ -13,7 +13,7 @@ $rr = new RoadRunner\Worker($relay); while ($in = $rr->waitPayload()) { try { - $rr->send((string)$in->body); + $rr->respond(new RoadRunner\Payload((string)$in->body)); } catch (\Throwable $e) { $rr->error((string)$e); } -- cgit v1.2.3