public function SerializerTest::testDeserializeNoNormalizer

@expectedException \Symfony\Component\Serializer\Exception\LogicException

File

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

Class

SerializerTest

Namespace

Symfony\Component\Serializer\Tests

Code

public function testDeserializeNoNormalizer() {
  $this->serializer = new Serializer(array(), array(
    'json' => new JsonEncoder(),
  ));
  $data = array(
    'title' => 'foo',
    'numbers' => array(
      5,
      3,
    ),
  );
  $this->serializer
    ->deserialize(json_encode($data), '\\Symfony\\Component\\Serializer\\Tests\\Model', 'json');
}