Skip to content

Commit 0b9f310

Browse files
mfotifabpot
authored andcommitted
[HttpFoundation] [Hackday] symfony#9942 test: Request::getContent() for null value
1 parent a029833 commit 0b9f310

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,13 @@ public function testGetContentReturnsResource()
921921
$this->assertTrue(feof($retval));
922922
}
923923

924+
public function testEmptyStringContentReturns()
925+
{
926+
$req = Request::create('test');
927+
928+
$this->assertEquals('', $req->getContent());
929+
}
930+
924931
/**
925932
* @expectedException \LogicException
926933
* @dataProvider getContentCantBeCalledTwiceWithResourcesProvider

0 commit comments

Comments
 (0)