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