public function JsonResponseTest::testConstructorEmptyCreatesJsonObject

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/JsonResponseTest.php, line 18

Class

JsonResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

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