public function SerializerTest::testDeserializeWrongNormalizer in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/SerializerTest.php \Symfony\Component\Serializer\Tests\SerializerTest::testDeserializeWrongNormalizer()
@expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException
File
- vendor/
symfony/ serializer/ Tests/ SerializerTest.php, line 170
Class
Namespace
Symfony\Component\Serializer\TestsCode
public function testDeserializeWrongNormalizer() {
$this->serializer = new Serializer(array(
new CustomNormalizer(),
), array(
'json' => new JsonEncoder(),
));
$data = array(
'title' => 'foo',
'numbers' => array(
5,
3,
),
);
$this->serializer
->deserialize(json_encode($data), '\\Symfony\\Component\\Serializer\\Tests\\Model', 'json');
}