Skip to content

Commit

Permalink
test: add test when body is '0'
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 7, 2023
1 parent ee34dca commit 5e4e13b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/system/HTTP/IncomingRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 5e4e13b

Please sign in to comment.