public function JsonEncoderTest::testComplexObject

File

drupal/core/vendor/symfony/serializer/Symfony/Component/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'));
}