$this->normalizer->
normalize(new \
stdClass());
} public function testSupportsDenormalization() { $this->
assertTrue($this->normalizer->
supportsDenormalization('P00Y00M00DT00H00M00S', \DateInterval::
class));
$this->
assertFalse($this->normalizer->
supportsDenormalization('foo', 'Bar'
));
} public function testDenormalize() { $this->
assertDateIntervalEquals(new \
DateInterval('P00Y00M00DT00H00M00S'
),
$this->normalizer->
denormalize('P00Y00M00DT00H00M00S', \DateInterval::
class));
} /**
* @dataProvider dataProviderISO
*/
public function testDenormalizeUsingFormatPassedInContext($format,
$input,
$output) { $this->
assertDateIntervalEquals($this->
getInterval($output),
$this->normalizer->
denormalize($input, \DateInterval::
class, null,
[DateIntervalNormalizer::FORMAT_KEY =>
$format]));
} /**
* @dataProvider dataProviderISO
*/