Skip to content

Commit 5e4e13b

Browse files
committed
test: add test when body is '0'
1 parent ee34dca commit 5e4e13b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/system/HTTP/IncomingRequestTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,13 @@ public function testGetBodyWithFalseBody(): void
856856
$this->assertNull($request->getBody());
857857
}
858858

859+
public function testGetBodyWithZero(): void
860+
{
861+
$request = $this->createRequest(null, '0');
862+
863+
$this->assertSame('0', $request->getBody());
864+
}
865+
859866
/**
860867
* @see https://github.com/codeigniter4/CodeIgniter4/issues/3020
861868
*/

0 commit comments

Comments
 (0)