You are here

public function JsonResponseTest::testConstructorEmptyCreatesJsonObject in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Tests/JsonResponseTest.php, line 18

Class

JsonResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testConstructorEmptyCreatesJsonObject() {
  $response = new JsonResponse();
  $this
    ->assertSame('{}', $response
    ->getContent());
}