You are here

protected function JsonEncoderTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Tests/Encoder/JsonEncoderTest.php \Symfony\Component\Serializer\Tests\Encoder\JsonEncoderTest::setUp()

File

vendor/symfony/serializer/Tests/Encoder/JsonEncoderTest.php, line 20

Class

JsonEncoderTest

Namespace

Symfony\Component\Serializer\Tests\Encoder

Code

protected function setUp() {
  $this->encoder = new JsonEncoder();
  $this->serializer = new Serializer(array(
    new CustomNormalizer(),
  ), array(
    'json' => new JsonEncoder(),
  ));
}