Skip to content

Commit

Permalink
Fix expected output
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Batanov committed May 3, 2016
1 parent 51ad281 commit b87a7e5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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"}}';
Expand All @@ -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])) {
Expand Down

0 comments on commit b87a7e5

Please # to comment.