From b87a7e53bc4d9cce632fbe18fbb068d767e9217f Mon Sep 17 00:00:00 2001 From: Pavel Batanov Date: Tue, 3 May 2016 09:55:48 +0300 Subject: [PATCH] Fix expected output --- .../Serializer/Tests/Serializer/JsonSerializationTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/JMS/Serializer/Tests/Serializer/JsonSerializationTest.php b/tests/JMS/Serializer/Tests/Serializer/JsonSerializationTest.php index dee76d326..048c9002d 100644 --- a/tests/JMS/Serializer/Tests/Serializer/JsonSerializationTest.php +++ b/tests/JMS/Serializer/Tests/Serializer/JsonSerializationTest.php @@ -23,6 +23,7 @@ use JMS\Serializer\EventDispatcher\Event; use JMS\Serializer\EventDispatcher\EventSubscriberInterface; use JMS\Serializer\GraphNavigator; +use JMS\Serializer\SerializationContext; use JMS\Serializer\VisitorInterface; use JMS\Serializer\Tests\Fixtures\Author; use JMS\Serializer\Tests\Fixtures\AuthorList; @@ -81,7 +82,7 @@ protected function getContent($key) $outputs['virtual_properties_low'] = '{"low":1}'; $outputs['virtual_properties_high'] = '{"high":8}'; $outputs['virtual_properties_all'] = '{"low":1,"high":8}'; - $outputs['nullable'] = '{"foo":"bar","baz":null}'; + $outputs['nullable'] = '{"foo":"bar","baz":null,"0":null}'; $outputs['null'] = 'null'; $outputs['simple_object_nullable'] = '{"foo":"foo","moo":"bar","camel_case":"boo","null_property":null}'; $outputs['input'] = '{"attributes":{"type":"text","name":"firstname","value":"Adrien"}}'; @@ -93,7 +94,7 @@ protected function getContent($key) $outputs['car'] = '{"km":5,"type":"car"}'; $outputs['car_without_type'] = '{"km":5}'; $outputs['garage'] = '{"vehicles":[{"km":3,"type":"car"},{"km":1,"type":"moped"}]}'; - $outputs['tree'] = '{"tree":{"children":[{"children":[{"children":[],"foo":"bar"}],"foo":"bar"}],"foo":"bar"}}'; + $outputs['tree'] = '{"tree":{"children":[{"children":[{"children":[null],"foo":"bar"}],"foo":"bar"}],"foo":"bar"}}'; } if (!isset($outputs[$key])) {