$collectedData['decode'
]);
} public function testCollectNormalization() { $dataCollector =
new SerializerDataCollector();
$caller =
['name' => 'Foo.php', 'file' => 'src/Foo.php', 'line' => 123
];
$dataCollector->
collectNormalize('traceIdOne', 'data', 'format',
['foo' => 'bar'
], 20.0,
$caller);
$dataCollector->
collectDenormalize('traceIdTwo', 'data', 'type', 'format',
['foo' => 'bar'
], 20.0,
$caller);
$dataCollector->
collectNormalization('traceIdOne', DateTimeNormalizer::
class, 1.0
);
$dataCollector->
collectNormalization('traceIdOne', DateTimeNormalizer::
class, 2.0
);
$dataCollector->
collectNormalization('traceIdOne', ObjectNormalizer::
class, 5.0
);
$dataCollector->
collectNormalization('traceIdOne', ObjectNormalizer::
class, 10.0
);
$dataCollector->
collectNormalization('traceIdTwo', DateTimeNormalizer::
class, 1.0
);
$dataCollector->
collectNormalization('traceIdTwo', DateTimeNormalizer::
class, 2.0
);
$dataCollector->
collectNormalization('traceIdTwo', ObjectNormalizer::
class, 5.0
);
$dataCollector->
collectNormalization('traceIdTwo', ObjectNormalizer::
class, 10.0
);
$dataCollector->
lateCollect();
$collectedData =
$dataCollector->
getData();