public function SerializerTest::testSerializeNoEncoder

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

File

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

Class

SerializerTest

Namespace

Symfony\Component\Serializer\Tests

Code

public function testSerializeNoEncoder() {
  $this->serializer = new Serializer(array(), array());
  $data = array(
    'title' => 'foo',
    'numbers' => array(
      5,
      3,
    ),
  );
  $this->serializer
    ->serialize($data, 'json');
}