You are here

public function RequestTest::testGetContentCantBeCalledTwiceWithResources in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::testGetContentCantBeCalledTwiceWithResources()

@expectedException \LogicException @dataProvider getContentCantBeCalledTwiceWithResourcesProvider

File

vendor/symfony/http-foundation/Tests/RequestTest.php, line 996

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testGetContentCantBeCalledTwiceWithResources($first, $second) {
  if (PHP_VERSION_ID >= 50600) {
    $this
      ->markTestSkipped('PHP >= 5.6 allows to open php://input several times.');
  }
  $req = new Request();
  $req
    ->getContent($first);
  $req
    ->getContent($second);
}