public function RequestTest::testGetContentReturnsResource in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::testGetContentReturnsResource()
File
- vendor/
symfony/ http-foundation/ Tests/ RequestTest.php, line 963
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testGetContentReturnsResource() {
$req = new Request();
$retval = $req
->getContent(true);
$this
->assertInternalType('resource', $retval);
$this
->assertEquals('', fread($retval, 1));
$this
->assertTrue(feof($retval));
}