'normalization' =>
[],
'encoding' =>
[],
'caller' =>
$caller,
]],
$collectedData['deserialize'
]);
} public function testCollectNormalize() { $dataCollector =
new SerializerDataCollector();
$caller =
['name' => 'Foo.php', 'file' => 'src/Foo.php', 'line' => 123
];
$dataCollector->
collectNormalize('traceIdOne', 'data', 'format',
['foo' => 'bar'
], 1.0,
$caller);
$dataCollector->
collectDenormalize('traceIdTwo', 'data', 'type', 'format',
['foo' => 'bar'
], 1.0,
$caller);
$dataCollector->
lateCollect();
$collectedData =
$this->
castCollectedData($dataCollector->
getData());
$this->
assertSame([[ 'data' => 'data',
'dataType' => 'string',
'type' => null,
'format' => 'format',
'time' => 1.0,