public function SerializerTest::testNormalizeOnDenormalizer

@expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Tests/SerializerTest.php, line 51

Class

SerializerTest

Namespace

Symfony\Component\Serializer\Tests

Code

public function testNormalizeOnDenormalizer() {
  $this->serializer = new Serializer(array(
    new TestDenormalizer(),
  ), array());
  $this
    ->assertTrue($this->serializer
    ->normalize(new \stdClass(), 'json'));
}