'normalization' =>
[],
'encoding' =>
[],
'caller' =>
$caller,
]],
$collectedData['denormalize'
]);
} public function testCollectEncode() { $dataCollector =
new SerializerDataCollector();
$caller =
['name' => 'Foo.php', 'file' => 'src/Foo.php', 'line' => 123
];
$dataCollector->
collectEncode('traceIdOne', 'data', 'format',
['foo' => 'bar'
], 1.0,
$caller);
$dataCollector->
collectDecode('traceIdTwo', 'data', '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,