[HttpFoundation] [Hackday] #9942 test: Request::getContent() for null value
This commit is contained in:
parent
a0298331ad
commit
0b9f310055
@ -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
|
||||
|
Reference in New Issue
Block a user