[HttpFoundation] [Hackday] #9942 test: Request::getContent() for null value

This commit is contained in:
Mauro Foti 2014-11-29 11:51:02 +01:00 committed by Fabien Potencier
parent a0298331ad
commit 0b9f310055

View File

@ -921,6 +921,13 @@ class RequestTest extends \PHPUnit_Framework_TestCase
$this->assertTrue(feof($retval));
}
public function testEmptyStringContentReturns()
{
$req = Request::create('test');
$this->assertEquals('', $req->getContent());
}
/**
* @expectedException \LogicException
* @dataProvider getContentCantBeCalledTwiceWithResourcesProvider