'%RP%yY%mM%dD', '+P10Y2M3D', '+P10Y2M3DT0H'
],
['%RP%yY%mM%dD', '+P10Y2M3D', 'P10Y2M3DT0H'
],
['%rP%yY%mM%dD', '-P10Y2M3D', '-P10Y2M3DT0H'
],
['%rP%yY%mM%dD', 'P10Y2M3D', 'P10Y2M3DT0H'
],
];
return $data;
} public function testSupportsNormalization() { $this->
assertTrue($this->normalizer->
supportsNormalization(new \
DateInterval('P00Y00M00DT00H00M00S'
)));
$this->
assertFalse($this->normalizer->
supportsNormalization(new \
stdClass()));
} public function testNormalize() { $this->
assertEquals('P0Y0M0DT0H0M0S',
$this->normalizer->
normalize(new \
DateInterval('PT0S'
)));
} /**
* @dataProvider dataProviderISO
*/