diff --git a/tests/system/HTTP/IncomingRequestTest.php b/tests/system/HTTP/IncomingRequestTest.php index 4830837c1fb6..cfc26a988857 100644 --- a/tests/system/HTTP/IncomingRequestTest.php +++ b/tests/system/HTTP/IncomingRequestTest.php @@ -856,6 +856,13 @@ public function testGetBodyWithFalseBody(): void $this->assertNull($request->getBody()); } + public function testGetBodyWithZero(): void + { + $request = $this->createRequest(null, '0'); + + $this->assertSame('0', $request->getBody()); + } + /** * @see https://github.com/codeigniter4/CodeIgniter4/issues/3020 */