You are here

public function JsonEncoderTest::testComplexObject 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::testComplexObject()

File

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

Class

JsonEncoderTest

Namespace

Symfony\Component\Serializer\Tests\Encoder

Code

public function testComplexObject() {
  $obj = $this
    ->getObject();
  $expected = $this
    ->getJsonSource();
  $this
    ->assertEquals($expected, $this->encoder
    ->encode($obj, 'json'));
}