public function SerializerTest::testDeserializeNotSupported

File

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

Class

SerializerTest

Namespace

Symfony\Component\Serializer\Tests

Code

public function testDeserializeNotSupported() {
  $this->serializer = new Serializer(array(
    new GetSetMethodNormalizer(),
  ), array());
  $data = array(
    'title' => 'foo',
    'numbers' => array(
      5,
      3,
    ),
  );
  $this
    ->assertFalse($this->serializer
    ->supportsDenormalization(json_encode($data), 'stdClass', 'json'));
}