public function SerializerTest::testDeserializeNotSupportedMissing

File

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

Class

SerializerTest

Namespace

Symfony\Component\Serializer\Tests

Code

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