/** * @dataProvider provideSimpleSpec */ public function testConstructConvertSimpleSpec(\DateInterval $expectedInterval, $testSpec) { $format = '%R %Y %M %D %H %I %S'; $actualInterval = new DateInterval($testSpec); $this->assertEquals($expectedInterval->format($format), $actualInterval->format($format)); }