From fa461dd6c41113ddd431b54e6db1fd80fc44b6de Mon Sep 17 00:00:00 2001 From: leocavalcante Date: Thu, 21 Jan 2021 17:54:56 -0300 Subject: [PATCH] tests: fix --- tests/Fixture/SwooleRequest.php | 10 +++++----- tests/Fixture/SwooleResponse.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Fixture/SwooleRequest.php b/tests/Fixture/SwooleRequest.php index 708b38d..fc5e1c4 100644 --- a/tests/Fixture/SwooleRequest.php +++ b/tests/Fixture/SwooleRequest.php @@ -6,19 +6,19 @@ final class SwooleRequest extends Request { - private string $data; + private string $content; - public function __construct(string $data = '') + public function __construct(string $content = '') { - $this->data = $data; + $this->content = $content; $this->server = [ 'request_uri' => '/', 'request_method' => 'GET', ]; } - public function getData(): string + public function rawContent(): string { - return $this->data; + return $this->content; } } diff --git a/tests/Fixture/SwooleResponse.php b/tests/Fixture/SwooleResponse.php index 28ae7c9..276b8c0 100644 --- a/tests/Fixture/SwooleResponse.php +++ b/tests/Fixture/SwooleResponse.php @@ -48,4 +48,4 @@ public function getStatusCode(): int { return $this->statusCode; } -} \ No newline at end of file +}